fixed memory leak issue

This commit is contained in:
dajiang
2019-04-26 10:23:52 +08:00
parent 4a20b5f54c
commit 1d56cfc089

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;
}