aboutsummaryrefslogtreecommitdiff
path: root/android/olm-sdk/src
diff options
context:
space:
mode:
authorHubert Chathi <hubert@uhoreg.ca>2018-10-17 22:25:10 -0400
committerHubert Chathi <hubert@uhoreg.ca>2018-10-17 22:25:10 -0400
commit6e6facba3b4e2beb4e708271f0f23c7bf3840835 (patch)
tree39e1985c5c29f6434d758153f3e08c20fccec43b /android/olm-sdk/src
parent09dc3b602599c1d7305adb183e4d402665d79a8f (diff)
fix c+p error: don't clobber the decryption object on error
Diffstat (limited to 'android/olm-sdk/src')
-rw-r--r--android/olm-sdk/src/main/jni/olm_pk.cpp6
1 files changed, 0 insertions, 6 deletions
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);
}