From 6e6facba3b4e2beb4e708271f0f23c7bf3840835 Mon Sep 17 00:00:00 2001 From: Hubert Chathi Date: Wed, 17 Oct 2018 22:25:10 -0400 Subject: fix c+p error: don't clobber the decryption object on error --- android/olm-sdk/src/main/jni/olm_pk.cpp | 6 ------ 1 file changed, 6 deletions(-) (limited to 'android/olm-sdk/src') diff --git a/android/olm-sdk/src/main/jni/olm_pk.cpp b/android/olm-sdk/src/main/jni/olm_pk.cpp index bc78079..dce62d8 100644 --- a/android/olm-sdk/src/main/jni/olm_pk.cpp +++ b/android/olm-sdk/src/main/jni/olm_pk.cpp @@ -414,12 +414,6 @@ JNIEXPORT jbyteArray OLM_PK_DECRYPTION_FUNC_DEF(generateKeyJni)(JNIEnv *env, job if (errorMessage) { - // release the allocated data - if (decryptionPtr) - { - olm_clear_pk_decryption(decryptionPtr); - free(decryptionPtr); - } env->ThrowNew(env->FindClass("java/lang/Exception"), errorMessage); } -- cgit v1.2.3