summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVicențiu Ciorbaru <vicentiu@mariadb.org>2018-08-25 18:23:34 +0300
committerVicențiu Ciorbaru <vicentiu@mariadb.org>2018-08-25 18:27:57 +0300
commit51fb163b6d390119a7ca9641a4ca9b36e713fc35 (patch)
tree4031e49204a57f316776408632bf1d06ca69bac2
parent6b22cc4ae074276eb0adca4c7a7a0b99cc6ca56b (diff)
downloadmariadb-git-51fb163b6d390119a7ca9641a4ca9b36e713fc35.tar.gz
Fix clang warning of mismatched new[] and delete[]
Warning: 'delete' applied to a pointer that was allocated with 'new[]'; did you mean 'delete[]'?
-rw-r--r--storage/connect/javaconn.cpp2
1 files changed, 1 insertions, 1 deletions
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: