From: Antony Dovgal Date: Tue, 29 Jul 2008 11:09:00 +0000 (+0000) Subject: don't free function name before calling the function X-Git-Tag: php-5.3.0alpha1~60 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2543206105c5fbb20a183759fc24fe3b092e57fb;p=php don't free function name before calling the function --- diff --git a/ext/phar/util.c b/ext/phar/util.c index d7067e2e8c..add7ce8d16 100644 --- a/ext/phar/util.c +++ b/ext/phar/util.c @@ -1510,10 +1510,9 @@ static int phar_call_openssl_signverify(int is_sign, php_stream *fp, off_t end, zval_dtor(zsig); zval_dtor(zkey); zval_dtor(openssl); + efree(openssl); return FAILURE; } - zval_dtor(openssl); - efree(openssl); fci.param_count = 3; fci.params = zp; @@ -1536,11 +1535,16 @@ static int phar_call_openssl_signverify(int is_sign, php_stream *fp, off_t end, zval_dtor(zdata); zval_dtor(zsig); zval_dtor(zkey); + zval_dtor(openssl); + efree(openssl); efree(zdata); efree(zkey); efree(zsig); return FAILURE; } + zval_dtor(openssl); + efree(openssl); + #if PHP_VERSION_ID < 50300 --(zdata->refcount); --(zsig->refcount);