@@ -641,7 +641,8 @@ int phar_parse_zipfile(php_stream *fp, char *fname, size_t fname_len, char *alia
641641 }
642642 }
643643
644- if (!entry .uncompressed_filesize || !actual_alias ) {
644+ if (!entry .uncompressed_filesize ) {
645+ efree (actual_alias );
645646 php_stream_filter_remove (filter , 1 );
646647 pefree (entry .filename , entry .is_persistent );
647648 PHAR_ZIP_FAIL ("unable to read in alias, truncated" );
@@ -674,7 +675,8 @@ int phar_parse_zipfile(php_stream *fp, char *fname, size_t fname_len, char *alia
674675 }
675676 }
676677
677- if (!entry .uncompressed_filesize || !actual_alias ) {
678+ if (!entry .uncompressed_filesize ) {
679+ efree (actual_alias );
678680 php_stream_filter_remove (filter , 1 );
679681 pefree (entry .filename , entry .is_persistent );
680682 PHAR_ZIP_FAIL ("unable to read in alias, truncated" );
@@ -697,7 +699,8 @@ int phar_parse_zipfile(php_stream *fp, char *fname, size_t fname_len, char *alia
697699 }
698700 }
699701
700- if (!entry .uncompressed_filesize || !actual_alias ) {
702+ if (!entry .uncompressed_filesize ) {
703+ efree (actual_alias );
701704 pefree (entry .filename , entry .is_persistent );
702705 PHAR_ZIP_FAIL ("unable to read in alias, truncated" );
703706 }
0 commit comments