com php-src: fix double free: ext/phar/zip.c
| From: | Anatol Belski | Date: | Fri, 02 Sep 2016 22:01:04 +0000 |
| Subject: | com php-src: fix double free: ext/phar/zip.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-94267@lists.php.net to get a copy of this message | ||
Commit: 5efd2a33df62d2bcaeeb6c8ff6ef20478f3a5417
Author: Anatol Belski <ab@php.net> Sat, 3 Sep 2016 00:01:04 +0200
Parents: e576714f6b4829763b797c552217a14e6d30ca59
Branches: PHP-5.6 PHP-7.0 PHP-7.1 master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=5efd2a33df62d2bcaeeb6c8ff6ef20478f3a5417
Log:
fix double free
Changed paths:
M ext/phar/zip.c
Diff:
diff --git a/ext/phar/zip.c b/ext/phar/zip.c
index 2f1d915..bf895e7 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 */