Skip to content

Commit 51fb163

Browse files
committed
Fix clang warning of mismatched new[] and delete[]
Warning: 'delete' applied to a pointer that was allocated with 'new[]'; did you mean 'delete[]'?
1 parent 6b22cc4 commit 51fb163

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

storage/connect/javaconn.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -456,7 +456,7 @@ bool JAVAConn::Open(PGLOBAL g)
456456

457457
//=============== load and initialize Java VM and JNI interface =============
458458
rc = CreateJavaVM(&jvm, (void**)&env, &vm_args); // YES !!
459-
delete options; // we then no longer need the initialisation options.
459+
delete[] options; // we then no longer need the initialisation options.
460460

461461
switch (rc) {
462462
case JNI_OK:

0 commit comments

Comments
 (0)