projects
/
oweals
/
openssl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d8e2b4f
)
Fix a memory leak in an error path
author
Matt Caswell
<matt@openssl.org>
Mon, 12 Feb 2018 16:58:33 +0000
(16:58 +0000)
committer
Matt Caswell
<matt@openssl.org>
Wed, 14 Feb 2018 15:30:15 +0000
(15:30 +0000)
Found by Coverity.
Reviewed-by: Rich Salz <rsalz@openssl.org>
Reviewed-by: Paul Dale <paul.dale@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/5336)
crypto/rsa/rsa_mp.c
patch
|
blob
|
history
diff --git
a/crypto/rsa/rsa_mp.c
b/crypto/rsa/rsa_mp.c
index 97a09f1387774927d803c0526b116574a5a5078a..7e38179b97d4d06224e4713f11310607d04ac13a 100644
(file)
--- a/
crypto/rsa/rsa_mp.c
+++ b/
crypto/rsa/rsa_mp.c
@@
-51,6
+51,7
@@
RSA_PRIME_INFO *rsa_multip_info_new(void)
BN_free(pinfo->d);
BN_free(pinfo->t);
BN_free(pinfo->pp);
+ OPENSSL_free(pinfo);
return NULL;
}