diff options
author | Felipe Pena <felipensp@gmail.com> | 2013-10-12 17:25:26 -0300 |
---|---|---|
committer | Felipe Pena <felipensp@gmail.com> | 2013-10-12 17:25:26 -0300 |
commit | 5c6dbc35e73a9dd6d6ffc8bb57c4b98a8918e008 (patch) | |
tree | 7f7b66033a17a4bd98ad1160f186c3a654f52cd1 | |
parent | ef7fd7f4b5d1de1a49628806caf3d263509a9f18 (diff) | |
download | php-git-5c6dbc35e73a9dd6d6ffc8bb57c4b98a8918e008.tar.gz |
- Fixed resource leak
-rw-r--r-- | ext/opcache/zend_accelerator_blacklist.c | 1 |
1 files changed, 1 insertions, 0 deletions
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; |