summaryrefslogtreecommitdiff
path: root/ext/phar/util.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/phar/util.c')
-rw-r--r--ext/phar/util.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/phar/util.c b/ext/phar/util.c
index fb3c8beac7..461cbf91f1 100644
--- a/ext/phar/util.c
+++ b/ext/phar/util.c
@@ -496,6 +496,7 @@ really_get_entry:
if (entry->link) {
phar_entry_info *link = phar_get_link_source(entry TSRMLS_CC);
if(!link) {
+ efree(*ret);
return FAILURE;
}
(*ret)->zero = phar_get_fp_offset(link TSRMLS_CC);