@@ -673,7 +673,8 @@ int phar_parse_zipfile(php_stream *fp, char *fname, size_t fname_len, char *alia
673673 }
674674 }
675675
676- if (!entry .uncompressed_filesize || !actual_alias ) {
676+ if (!entry .uncompressed_filesize ) {
677+ efree (actual_alias );
677678 php_stream_filter_remove (filter , 1 );
678679 pefree (entry .filename , entry .is_persistent );
679680 PHAR_ZIP_FAIL ("unable to read in alias, truncated" );
@@ -706,7 +707,8 @@ int phar_parse_zipfile(php_stream *fp, char *fname, size_t fname_len, char *alia
706707 }
707708 }
708709
709- if (!entry .uncompressed_filesize || !actual_alias ) {
710+ if (!entry .uncompressed_filesize ) {
711+ efree (actual_alias );
710712 php_stream_filter_remove (filter , 1 );
711713 pefree (entry .filename , entry .is_persistent );
712714 PHAR_ZIP_FAIL ("unable to read in alias, truncated" );
@@ -729,7 +731,8 @@ int phar_parse_zipfile(php_stream *fp, char *fname, size_t fname_len, char *alia
729731 }
730732 }
731733
732- if (!entry .uncompressed_filesize || !actual_alias ) {
734+ if (!entry .uncompressed_filesize ) {
735+ efree (actual_alias );
733736 pefree (entry .filename , entry .is_persistent );
734737 PHAR_ZIP_FAIL ("unable to read in alias, truncated" );
735738 }
0 commit comments