From 7268c139aa234fa69cff7b64b7d431ac31245525 Mon Sep 17 00:00:00 2001 From: Jaehong Jo Date: Mon, 21 Sep 2015 16:44:56 +0900 Subject: [PATCH] Modify Improper deletion of ArrayList As array list member is not created in runtime, deletion causes memory crash. Change-Id: Idc15349b70ff77a8446e76488ff3ca13c055e475 Signed-off-by: Jaehong Jo Reviewed-on: https://gerrit.iotivity.org/gerrit/2829 Reviewed-by: Ashok Babu Channa Tested-by: jenkins-iotivity Reviewed-by: Patrick Lankswert --- resource/csdk/connectivity/src/bt_edr_adapter/android/caedrutils.c | 1 - 1 file changed, 1 deletion(-) diff --git a/resource/csdk/connectivity/src/bt_edr_adapter/android/caedrutils.c b/resource/csdk/connectivity/src/bt_edr_adapter/android/caedrutils.c index 154ef47..bd40b31 100644 --- a/resource/csdk/connectivity/src/bt_edr_adapter/android/caedrutils.c +++ b/resource/csdk/connectivity/src/bt_edr_adapter/android/caedrutils.c @@ -646,7 +646,6 @@ bool CAEDRNativeIsDeviceSocketInList(JNIEnv *env, const char* remoteAddress) } jstring jni_setAddress = CAEDRNativeGetAddressFromDeviceSocket(env, jarrayObj); - (*env)->DeleteLocalRef(env, jarrayObj); if (!jni_setAddress) { OIC_LOG(DEBUG, TAG, "[EDR][Native] jni_setAddress is null"); -- 2.7.4