From 62542d046483687330c55b36fa27d82dc03958c2 Mon Sep 17 00:00:00 2001 From: Matt Caswell Date: Mon, 12 Feb 2018 16:58:33 +0000 Subject: [PATCH] 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) --- crypto/rsa/rsa_mp.c | 1 + 1 file changed, 1 insertion(+) 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; } -- 2.40.0