com php-src: Prevent double resource free: ext/phar/phar_obje ct.c
| From: | Dmitry Stogov | Date: | Mon, 19 May 2014 07:50:38 +0000 |
| Subject: | com php-src: Prevent double resource free: ext/phar/phar_obje ct.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-78462@lists.php.net to get a copy of this message | ||
Commit: 4ea10696e8ffc3779f0cc73ab11c2214ab2bed47
Author: Dmitry Stogov <dmitry@zend.com> Mon, 19 May 2014 11:50:38 +0400
Parents: 82a48974465e767884c7a7043bf5150406d50b78
Branches: phpng
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=4ea10696e8ffc3779f0cc73ab11c2214ab2bed47
Log:
Prevent double resource free
Changed paths:
M ext/phar/phar_object.c
Diff:
diff --git a/ext/phar/phar_object.c b/ext/phar/phar_object.c
index d73f6ad..f723197 100644
--- a/ext/phar/phar_object.c
+++ b/ext/phar/phar_object.c
@@ -3832,7 +3832,6 @@ PHP_METHOD(Phar, addFile)
php_stream_to_zval(resource, &zresource);
phar_add_file(&(phar_obj->archive), fname, fname_len, NULL, 0, &zresource TSRMLS_CC);
zval_ptr_dtor(&zresource);
- php_stream_close(resource);
}
/* }}} */