diff options
author | Antony Dovgal <tony2001@php.net> | 2008-07-29 11:09:00 +0000 |
---|---|---|
committer | Antony Dovgal <tony2001@php.net> | 2008-07-29 11:09:00 +0000 |
commit | 2543206105c5fbb20a183759fc24fe3b092e57fb (patch) | |
tree | f8da6c709a5663ae2dd89abfc192fa05cf533fa7 /ext/phar/util.c | |
parent | b53da9cd80ce12f37f93e54bf1d232d7c59c1f54 (diff) | |
download | php-git-2543206105c5fbb20a183759fc24fe3b092e57fb.tar.gz |
don't free function name before calling the function
Diffstat (limited to 'ext/phar/util.c')
-rw-r--r-- | ext/phar/util.c | 8 |
1 files 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); |