]> granicus.if.org Git - php/commitdiff
fix double free
authorAnatol Belski <ab@php.net>
Fri, 2 Sep 2016 22:01:04 +0000 (00:01 +0200)
committerAnatol Belski <ab@php.net>
Fri, 2 Sep 2016 22:01:04 +0000 (00:01 +0200)
ext/phar/zip.c

index 2f1d915146f643c659da4f4e0a6572d0571c6a3f..bf895e7dfed00a9b9e2cbac2e9a6faecc1202c00 100644 (file)
@@ -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 */