From bab84ccb50b155c9c8c45bfcf7f7e8cefdbf09a0 Mon Sep 17 00:00:00 2001 From: cbcgorilla Date: Tue, 10 May 2022 23:38:39 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8DJNI=E6=8E=A5=E5=8F=A3?= =?UTF-8?q?=E4=B8=ADSM4=E8=A7=A3=E5=AF=86=E5=86=85=E5=AD=98=E7=AE=A1?= =?UTF-8?q?=E7=90=86=E7=BC=BA=E9=99=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- java/GmSSL.c | 1 + 1 file changed, 1 insertion(+) diff --git a/java/GmSSL.c b/java/GmSSL.c index 00fde527..3d3ce615 100755 --- a/java/GmSSL.c +++ b/java/GmSSL.c @@ -424,6 +424,7 @@ end: if (keybuf) (*env)->ReleaseByteArrayElements(env, key, (jbyte *)keybuf, JNI_ABORT); if (inbuf) (*env)->ReleaseByteArrayElements(env, in, (jbyte *)inbuf, JNI_ABORT); if (ivbuf) (*env)->ReleaseByteArrayElements(env, iv, (jbyte *)ivbuf, JNI_ABORT); + OPENSSL_free(outbuf); EVP_CIPHER_CTX_free(cctx); return ret; }