com php-src: fix memory leak: ext/phar/util.c

From: Date: Tue, 29 Sep 2015 03:43:18 +0000
Subject: com php-src: fix memory leak: ext/phar/util.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-89196@lists.php.net to get a copy of this message
Commit: f98ab19dc0c978e3caaa2614579e4a61f2c317f5 Author: Stanislav Malyshev <stas@php.net> Mon, 28 Sep 2015 20:43:18 -0700 Parents: e78ac461dbefb7c4a3e9fde78d50fbc56b7b0183 Branches: PHP-5.5 PHP-5.6 PHP-7.0 master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=f98ab19dc0c978e3caaa2614579e4a61f2c317f5 Log: fix memory leak Changed paths: M ext/phar/util.c Diff: diff --git a/ext/phar/util.c b/ext/phar/util.c index 69da7b9..e7decda 100644 --- a/ext/phar/util.c +++ b/ext/phar/util.c @@ -496,6 +496,7 @@ really_get_entry: if (entry->link) { phar_entry_info *link = phar_get_link_source(entry TSRMLS_CC); if(!link) { + efree(*ret); return FAILURE; } (*ret)->zero = phar_get_fp_offset(link TSRMLS_CC);

« previous php.cvs (#89196) next »