summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ext/phar/phar.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/phar/phar.c b/ext/phar/phar.c
index 35dd8393f6..2f2c4d35f6 100644
--- a/ext/phar/phar.c
+++ b/ext/phar/phar.c
@@ -1111,6 +1111,7 @@ static int phar_parse_pharfile(php_stream *fp, char *fname, int fname_len, char
entry.metadata_len = 0;
}
if (len > endbuffer - buffer) {
+ pefree(entry.filename, entry.is_persistent);
MAPPHAR_FAIL("internal corruption of phar \"%s\" (truncated manifest entry)");
}
if (phar_parse_metadata(&buffer, &entry.metadata, len TSRMLS_CC) == FAILURE) {