Skip to content

Commit

Permalink
- Fixed resource leak
Browse files Browse the repository at this point in the history
  • Loading branch information
felipensp committed Oct 12, 2013
1 parent 6dbdde7 commit cbac47b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions zend_accelerator_blacklist.c
Expand Up @@ -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;
Expand Down

0 comments on commit cbac47b

Please sign in to comment.