Skip to content

Commit fa2f7d7

Browse files
committed
fixup! pax header
1 parent 4dee20d commit fa2f7d7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

ext/phar/tar.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -357,7 +357,9 @@ zend_result phar_parse_tarfile(php_stream* fp, char *fname, size_t fname_len, ch
357357
spprintf(error, 4096, "phar error: tar-based phar \"%s\" has signature that is larger than 511 bytes, cannot process", fname);
358358
}
359359
bail:
360-
zend_string_release(filename_pax_override);
360+
if (filename_pax_override) {
361+
zend_string_release(filename_pax_override);
362+
}
361363
php_stream_close(fp);
362364
phar_destroy_phar_data(myphar);
363365
return FAILURE;

0 commit comments

Comments
 (0)