From: Dr. Stephen Henson Date: Tue, 5 Apr 2016 13:06:28 +0000 (+0100) Subject: fix memory leak in ca X-Git-Tag: OpenSSL_1_1_0-pre5~130 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6e863f07376e1c8ae7c89477234db50838784d99;p=openssl fix memory leak in ca Reviewed-by: Rich Salz --- diff --git a/apps/ca.c b/apps/ca.c index cc74c5bd25..d2990a5673 100644 --- a/apps/ca.c +++ b/apps/ca.c @@ -1788,7 +1788,7 @@ static int do_body(X509 **xret, EVP_PKEY *pkey, X509 *x509, if (!X509_set_subject_name(ret, subject)) goto end; - pktmp = X509_REQ_get_pubkey(req); + pktmp = X509_REQ_get0_pubkey(req); i = X509_set_pubkey(ret, pktmp); if (!i) goto end;