1 Star 0 Fork 81

zhaosai/openjdk-1.8.0

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Fix-RSACipher-memory-usage.patch 716 Bytes
一键复制 编辑 原始数据 按行查看 历史
Noah 提交于 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;
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/zhaosai-Simon/openjdk-1.8.0.git
git@gitee.com:zhaosai-Simon/openjdk-1.8.0.git
zhaosai-Simon
openjdk-1.8.0
openjdk-1.8.0
master

搜索帮助