]> granicus.if.org Git - php/commit
Fix #79145: openssl memory leak
authorChristoph M. Becker <cmbecker69@gmx.de>
Tue, 21 Jan 2020 15:17:25 +0000 (16:17 +0100)
committerChristoph M. Becker <cmbecker69@gmx.de>
Tue, 21 Jan 2020 15:17:25 +0000 (16:17 +0100)
commit9eff906a024578f0ea0bf8b4e318544d70074537
tree1589a88ebd34bae69ab7b2c2f5881edac503e029
parent3046e35718e4980a8cf7785fa6ecea51d02ebee8
Fix #79145: openssl memory leak

We must increase the refcount of `return_value` only if `cert` is a
resource; this is already done in `php_openssl_evp_from_zval()`,
though.
NEWS
ext/openssl/openssl.c
ext/openssl/tests/bug79145.phpt [new file with mode: 0644]