From 51fb163b6d390119a7ca9641a4ca9b36e713fc35 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vicen=C8=9Biu=20Ciorbaru?= Date: Sat, 25 Aug 2018 18:23:34 +0300 Subject: Fix clang warning of mismatched new[] and delete[] Warning: 'delete' applied to a pointer that was allocated with 'new[]'; did you mean 'delete[]'? --- storage/connect/javaconn.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/storage/connect/javaconn.cpp b/storage/connect/javaconn.cpp index e73149486a8..ec10b125737 100644 --- a/storage/connect/javaconn.cpp +++ b/storage/connect/javaconn.cpp @@ -456,7 +456,7 @@ bool JAVAConn::Open(PGLOBAL g) //=============== load and initialize Java VM and JNI interface ============= rc = CreateJavaVM(&jvm, (void**)&env, &vm_args); // YES !! - delete options; // we then no longer need the initialisation options. + delete[] options; // we then no longer need the initialisation options. switch (rc) { case JNI_OK: -- cgit v1.2.1