Skip to content

Commit 0ca4b6c

Browse files
committed
Merge branch 'PHP-5.5'
* PHP-5.5: - Fixed resource leak
2 parents 54a595a + 5c6dbc3 commit 0ca4b6c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

ext/opcache/zend_accelerator_blacklist.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -314,6 +314,7 @@ void zend_accel_blacklist_load(zend_blacklist *blacklist, char *filename)
314314
blacklist->entries[blacklist->pos].path = (char *)malloc(path_length + 1);
315315
if (!blacklist->entries[blacklist->pos].path) {
316316
zend_accel_error(ACCEL_LOG_ERROR, "malloc() failed\n");
317+
fclose(fp);
317318
return;
318319
}
319320
blacklist->entries[blacklist->pos].id = blacklist->pos;

0 commit comments

Comments
 (0)