From 2efe22849999728d4118c28451931b76a8091d3d Mon Sep 17 00:00:00 2001 From: fyrz Date: Thu, 22 Jan 2015 23:37:45 +0100 Subject: [PATCH] [RocksJava] Incorporated changes for D31809 --- java/rocksjni/rocksjni.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/java/rocksjni/rocksjni.cc b/java/rocksjni/rocksjni.cc index 522e22e58..dee6aaa14 100644 --- a/java/rocksjni/rocksjni.cc +++ b/java/rocksjni/rocksjni.cc @@ -126,7 +126,7 @@ jobject // free cfnames env->ReleaseByteArrayElements(jcfnames_for_free[i], cfnames_to_free[i], 0); // free c_cfnames - delete c_cfnames_to_free[i]; + delete[] c_cfnames_to_free[i]; } // check if open operation was successful @@ -219,7 +219,7 @@ jobject Java_org_rocksdb_RocksDB_open__JLjava_lang_String_2Ljava_util_List_2I( // free cfnames env->ReleaseByteArrayElements(jcfnames_for_free[i], cfnames_to_free[i], 0); // free c_cfnames - delete c_cfnames_to_free[i]; + delete[] c_cfnames_to_free[i]; } // check if open operation was successful @@ -1255,7 +1255,7 @@ jlong Java_org_rocksdb_RocksDB_createColumnFamily( rocksdb::Status s = db_handle->CreateColumnFamily( *cfOptions, c_cfname, &handle); env->ReleaseByteArrayElements(byteArray, cfname, 0); - delete c_cfname; + delete[] c_cfname; if (s.ok()) { return reinterpret_cast(handle);