From: Matt Caswell Date: Mon, 12 Feb 2018 16:58:33 +0000 (+0000) Subject: Fix a memory leak in an error path X-Git-Tag: OpenSSL_1_1_1-pre2~155 X-Git-Url: https://git.openssl.org/?p=openssl.git;a=commitdiff_plain;h=62542d046483687330c55b36fa27d82dc03958c2 Fix a memory leak in an error path Found by Coverity. Reviewed-by: Rich Salz Reviewed-by: Paul Dale (Merged from https://github.com/openssl/openssl/pull/5336) --- 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; }