com php-src: - Fixed resource leak: ext/opcache/zend_accelera tor_blacklist.c

From: Date: Sat, 12 Oct 2013 20:25:26 +0000
Subject: com php-src: - Fixed resource leak: ext/opcache/zend_accelera tor_blacklist.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-73427@lists.php.net to get a copy of this message
Commit: 5c6dbc35e73a9dd6d6ffc8bb57c4b98a8918e008 Author: Felipe Pena <felipensp@gmail.com> Sat, 12 Oct 2013 17:25:26 -0300 Parents: ef7fd7f4b5d1de1a49628806caf3d263509a9f18 Branches: PHP-5.5 master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=5c6dbc35e73a9dd6d6ffc8bb57c4b98a8918e008 Log: - Fixed resource leak Changed paths: M ext/opcache/zend_accelerator_blacklist.c Diff: diff --git a/ext/opcache/zend_accelerator_blacklist.c b/ext/opcache/zend_accelerator_blacklist.c index da83cfd..eb0bc21 100644 --- a/ext/opcache/zend_accelerator_blacklist.c +++ b/ext/opcache/zend_accelerator_blacklist.c @@ -314,6 +314,7 @@ void zend_accel_blacklist_load(zend_blacklist *blacklist, char *filename) blacklist->entries[blacklist->pos].path = (char *)malloc(path_length + 1); if (!blacklist->entries[blacklist->pos].path) { zend_accel_error(ACCEL_LOG_ERROR, "malloc() failed\n"); + fclose(fp); return; } blacklist->entries[blacklist->pos].id = blacklist->pos;

« previous php.cvs (#73427) next »