From: Felipe Pena Date: Sat, 12 Oct 2013 20:25:26 +0000 (-0300) Subject: - Fixed resource leak X-Git-Tag: php-5.5.5~5 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5c6dbc35e73a9dd6d6ffc8bb57c4b98a8918e008;p=php - Fixed resource leak --- diff --git a/ext/opcache/zend_accelerator_blacklist.c b/ext/opcache/zend_accelerator_blacklist.c index da83cfd311..eb0bc2146c 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;