diff options
author | Matt Caswell <matt@openssl.org> | 2018-02-12 16:58:33 +0000 |
---|---|---|
committer | Matt Caswell <matt@openssl.org> | 2018-02-14 15:30:15 +0000 |
commit | 62542d046483687330c55b36fa27d82dc03958c2 (patch) | |
tree | 3e329dc549ea5015b87e8789b5a96400c6055600 /crypto/rsa | |
parent | d8e2b4f9bf2e387ee533723a2d668fe7254b025c (diff) |
Fix a memory leak in an error path
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)
Diffstat (limited to 'crypto/rsa')
-rw-r--r-- | crypto/rsa/rsa_mp.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/crypto/rsa/rsa_mp.c b/crypto/rsa/rsa_mp.c index 97a09f1387..7e38179b97 100644 --- 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; } |