Merge pull request #755 from dajiangzhong/jni-memleak-fix

fixed memory leak issue
This commit is contained in:
Simon
2019-05-07 21:34:52 +08:00
committed by GitHub

View File

@@ -425,6 +425,7 @@ end:
if (inbuf) (*env)->ReleaseByteArrayElements(env, in, (jbyte *)inbuf, JNI_ABORT);
if (ivbuf) (*env)->ReleaseByteArrayElements(env, iv, (jbyte *)ivbuf, JNI_ABORT);
EVP_CIPHER_CTX_free(cctx);
OPENSSL_free(outbuf);
return ret;
}