From 5efd2a33df62d2bcaeeb6c8ff6ef20478f3a5417 Mon Sep 17 00:00:00 2001 From: Anatol Belski Date: Sat, 3 Sep 2016 00:01:04 +0200 Subject: [PATCH] fix double free --- ext/phar/zip.c | 1 - 1 file changed, 1 deletion(-) 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 */ -- 2.40.0