diff options
author | Jelle van der Waa <jelle@vdwaa.nl> | 2017-05-30 15:55:05 +0200 |
---|---|---|
committer | Nikita Popov <nikita.ppv@gmail.com> | 2017-06-02 23:52:43 +0200 |
commit | c742abb3ce3789bd2ff73d7f48bba04a5a2f585e (patch) | |
tree | a9532fa42cfc6e5676c8a88279eaba782f6f2415 | |
parent | cea34425f37fbef86f92cde05024ff1cbbc927b0 (diff) | |
download | php-git-c742abb3ce3789bd2ff73d7f48bba04a5a2f585e.tar.gz |
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).
-rw-r--r-- | ext/openssl/openssl.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/openssl/openssl.c b/ext/openssl/openssl.c index c1aa19679e..77897a2f44 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); |