From 2543206105c5fbb20a183759fc24fe3b092e57fb Mon Sep 17 00:00:00 2001 From: Antony Dovgal Date: Tue, 29 Jul 2008 11:09:00 +0000 Subject: [PATCH] don't free function name before calling the function --- ext/phar/util.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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); -- 2.50.1