From: Anatol Belski Date: Fri, 2 Sep 2016 22:01:04 +0000 (+0200) Subject: fix double free X-Git-Tag: php-7.1.0RC2~56^2~21^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5efd2a33df62d2bcaeeb6c8ff6ef20478f3a5417;p=php fix double free --- diff --git a/ext/phar/zip.c b/ext/phar/zip.c index 2f1d915146..bf895e7dfe 100644 --- a/ext/phar/zip.c +++ b/ext/phar/zip.c @@ -1146,7 +1146,6 @@ static int phar_zip_applysignature(phar_archive_data *phar, struct _phar_zip_pas if (pass->error && *(pass->error)) { /* error is set by writeheaders */ - php_stream_close(newfile); return FAILURE; } } /* signature */