1 Star 0 Fork 75

李经纬 / openjdk-1.8.0

forked from src-openEuler / openjdk-1.8.0 
Create your Gitee Account
Explore and code with more than 12 million developers,Free private repositories !:)
Sign up
Clone or Download
Fix-RSACipher-memory-usage.patch 716 Bytes
Copy Edit Raw Blame History
Noah authored 2021-07-12 15:57 . I408S7: Fix RSACipher memory usage
commit 59b41b317972a826715c705da489bb36d1a0a5a9
Author: noah <hedongbo@huawei.com>
Date: Mon Jul 12 15:54:23 2021 +0800
I408SI: Fix RSACipher memory usage
diff --git a/jdk/src/solaris/native/org/openeuler/security/openssl/kae_cipher_rsa.c b/jdk/src/solaris/native/org/openeuler/security/openssl/kae_cipher_rsa.c
index cbab7bdb..d1aedf5f 100644
--- a/jdk/src/solaris/native/org/openeuler/security/openssl/kae_cipher_rsa.c
+++ b/jdk/src/solaris/native/org/openeuler/security/openssl/kae_cipher_rsa.c
@@ -82,6 +82,9 @@ cleanup:
if (inBytes != NULL) {
(*env)->ReleaseByteArrayElements(env, in, inBytes, 0);
}
+ if (rsa != NULL) {
+ RSA_free(rsa);
+ }
return resultSize;
}
1
https://gitee.com/marsCatXDU/openjdk-1.8.0.git
git@gitee.com:marsCatXDU/openjdk-1.8.0.git
marsCatXDU
openjdk-1.8.0
openjdk-1.8.0
master

Search

53164aa7 5694891 3bd8fe86 5694891