From: Nikita Popov Date: Fri, 21 Jun 2019 12:35:35 +0000 (+0200) Subject: Fix netscape spki leak in openssl X-Git-Tag: php-7.2.21RC1~31 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=dfe6f0c1c6838d1fd9e6be49fd6896d421b4dac8;p=php Fix netscape spki leak in openssl --- diff --git a/ext/openssl/openssl.c b/ext/openssl/openssl.c index 855c093f34..69120f3559 100644 --- a/ext/openssl/openssl.c +++ b/ext/openssl/openssl.c @@ -2076,6 +2076,9 @@ cleanup: if (spkstr_cleaned != NULL) { efree(spkstr_cleaned); } + if (spki) { + NETSCAPE_SPKI_free(spki); + } } /* }}} */