From: Dmitry Stogov Date: Wed, 11 Jul 2007 07:36:12 +0000 (+0000) Subject: Fixed memory leak X-Git-Tag: php-5.2.4RC1~189 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f765f73e5f69632a805ea2d10eb0d4163c34ea1b;p=php Fixed memory leak --- diff --git a/ext/openssl/openssl.c b/ext/openssl/openssl.c index 41294f979a..d33bd38409 100644 --- a/ext/openssl/openssl.c +++ b/ext/openssl/openssl.c @@ -2608,6 +2608,7 @@ PHP_FUNCTION(openssl_pkey_export) RETVAL_TRUE; bio_mem_len = BIO_get_mem_data(bio_out, &bio_mem_ptr); + zval_dtor(out); ZVAL_STRINGL(out, bio_mem_ptr, bio_mem_len, 1); } }