com php-src: openssl_pkcs12_read: add missing B IO_free: ext/openssl/openssl.c

From: Date: Fri, 02 Jun 2017 21:52:43 +0000
Subject: com php-src: openssl_pkcs12_read: add missing B IO_free: ext/openssl/openssl.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-97988@lists.php.net to get a copy of this message
Commit: c742abb3ce3789bd2ff73d7f48bba04a5a2f585e Author: Jelle van der Waa <jelle@vdwaa.nl> Tue, 30 May 2017 15:55:05 +0200 Committer: Nikita Popov <nikita.ppv@gmail.com> Fri, 2 Jun 2017 23:52:43 +0200 Parents: cea34425f37fbef86f92cde05024ff1cbbc927b0 Branches: PHP-7.1 master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=c742abb3ce3789bd2ff73d7f48bba04a5a2f585e Log: openssl_pkcs12_read: add missing BIO_free When filling the extracerts array with certificates bio_out is created but not free'd leading to a small memory leak of 224 bytes (reported by valgrind). Changed paths: M ext/openssl/openssl.c Diff: diff --git a/ext/openssl/openssl.c b/ext/openssl/openssl.c index c1aa196..77897a2 100644 --- a/ext/openssl/openssl.c +++ b/ext/openssl/openssl.c @@ -2990,6 +2990,7 @@ PHP_FUNCTION(openssl_pkcs12_read) } X509_free(aCA); + BIO_free(bio_out); } sk_X509_free(ca);

« previous php.cvs (#97988) next »