com php-src: Fixed recently introduced memory leak: ext/phar/phar.c

From: Date: Tue, 14 Apr 2015 12:47:26 +0000
Subject: com php-src: Fixed recently introduced memory leak: ext/phar/phar.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-86222@lists.php.net to get a copy of this message
Commit: dfffa0ba5b7a42ffa77355c59c4054f5eaa3f1c5 Author: Dmitry Stogov <dmitry@zend.com> Tue, 14 Apr 2015 15:47:26 +0300 Parents: 4b27569dc3c684bf1d936cf4373d6aab1affca84 Branches: PHP-5.5 PHP-5.6 master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=dfffa0ba5b7a42ffa77355c59c4054f5eaa3f1c5 Log: Fixed recently introduced memory leak Changed paths: M ext/phar/phar.c Diff: diff --git a/ext/phar/phar.c b/ext/phar/phar.c index b90005d..711cf9b 100644 --- a/ext/phar/phar.c +++ b/ext/phar/phar.c @@ -1111,6 +1111,7 @@ static int phar_parse_pharfile(php_stream *fp, char *fname, int fname_len, char entry.metadata_len = 0; } if (len > endbuffer - buffer) { + pefree(entry.filename, entry.is_persistent); MAPPHAR_FAIL("internal corruption of phar \"%s\" (truncated manifest entry)"); } if (phar_parse_metadata(&buffer, &entry.metadata, len TSRMLS_CC) == FAILURE) {

« previous php.cvs (#86222) next »