@@ -286,9 +286,6 @@ zend_result phar_parse_tarfile(php_stream* fp, const char *fname, size_t fname_l
286286 }
287287bail :
288288 php_stream_close (fp );
289- if (actual_alias ) {
290- zend_string_release_ex (actual_alias , myphar -> is_persistent );
291- }
292289 phar_destroy_phar_data (myphar );
293290 return FAILURE ;
294291 }
@@ -329,9 +326,6 @@ zend_result phar_parse_tarfile(php_stream* fp, const char *fname, size_t fname_l
329326 spprintf (error , 4096 , "phar error: \"%s\" is a corrupted tar file (truncated)" , fname );
330327 }
331328 php_stream_close (fp );
332- if (actual_alias ) {
333- zend_string_release_ex (actual_alias , myphar -> is_persistent );
334- }
335329 phar_destroy_phar_data (myphar );
336330 return FAILURE ;
337331 }
@@ -344,9 +338,6 @@ zend_result phar_parse_tarfile(php_stream* fp, const char *fname, size_t fname_l
344338 spprintf (error , 4096 , "phar error: \"%s\" is a corrupted tar file (truncated)" , fname );
345339 }
346340 php_stream_close (fp );
347- if (actual_alias ) {
348- zend_string_release_ex (actual_alias , myphar -> is_persistent );
349- }
350341 phar_destroy_phar_data (myphar );
351342 return FAILURE ;
352343 }
@@ -375,9 +366,6 @@ zend_result phar_parse_tarfile(php_stream* fp, const char *fname, size_t fname_l
375366 spprintf (error , 4096 , "phar error: \"%s\" is a corrupted tar file (invalid entry size)" , fname );
376367 }
377368 php_stream_close (fp );
378- if (actual_alias ) {
379- zend_string_release_ex (actual_alias , myphar -> is_persistent );
380- }
381369 phar_destroy_phar_data (myphar );
382370 return FAILURE ;
383371 }
@@ -394,9 +382,6 @@ zend_result phar_parse_tarfile(php_stream* fp, const char *fname, size_t fname_l
394382 spprintf (error , 4096 , "phar error: \"%s\" is a corrupted tar file (truncated)" , fname );
395383 }
396384 php_stream_close (fp );
397- if (actual_alias ) {
398- zend_string_release_ex (actual_alias , myphar -> is_persistent );
399- }
400385 phar_destroy_phar_data (myphar );
401386 return FAILURE ;
402387 }
@@ -412,9 +397,6 @@ zend_result phar_parse_tarfile(php_stream* fp, const char *fname, size_t fname_l
412397 spprintf (error , 4096 , "phar error: \"%s\" is a corrupted tar file (truncated)" , fname );
413398 }
414399 php_stream_close (fp );
415- if (actual_alias ) {
416- zend_string_release_ex (actual_alias , myphar -> is_persistent );
417- }
418400 phar_destroy_phar_data (myphar );
419401 return FAILURE ;
420402 }
@@ -427,9 +409,6 @@ zend_result phar_parse_tarfile(php_stream* fp, const char *fname, size_t fname_l
427409 spprintf (error , 4096 , "phar error: \"%s\" is a corrupted tar file (truncated)" , fname );
428410 }
429411 php_stream_close (fp );
430- if (actual_alias ) {
431- zend_string_release_ex (actual_alias , myphar -> is_persistent );
432- }
433412 phar_destroy_phar_data (myphar );
434413 return FAILURE ;
435414 }
@@ -528,9 +507,6 @@ zend_result phar_parse_tarfile(php_stream* fp, const char *fname, size_t fname_l
528507 }
529508 zend_string_release_ex (entry .filename , myphar -> is_persistent );
530509 php_stream_close (fp );
531- if (actual_alias ) {
532- zend_string_release_ex (actual_alias , myphar -> is_persistent );
533- }
534510 phar_destroy_phar_data (myphar );
535511 return FAILURE ;
536512 }
@@ -553,9 +529,6 @@ zend_result phar_parse_tarfile(php_stream* fp, const char *fname, size_t fname_l
553529 spprintf (error , 4096 , "phar error: tar-based phar \"%s\" has invalid metadata in magic file \"%s\"" , fname , ZSTR_VAL (entry .filename ));
554530 }
555531 php_stream_close (fp );
556- if (actual_alias ) {
557- zend_string_release_ex (actual_alias , myphar -> is_persistent );
558- }
559532 phar_destroy_phar_data (myphar );
560533 return FAILURE ;
561534 }
@@ -568,9 +541,6 @@ zend_result phar_parse_tarfile(php_stream* fp, const char *fname, size_t fname_l
568541 spprintf (error , 4096 , "phar error: tar-based phar \"%s\" has alias that is larger than 511 bytes, cannot process" , fname );
569542 }
570543 php_stream_close (fp );
571- if (actual_alias ) {
572- zend_string_release_ex (actual_alias , myphar -> is_persistent );
573- }
574544 phar_destroy_phar_data (myphar );
575545 return FAILURE ;
576546 }
@@ -609,9 +579,6 @@ zend_result phar_parse_tarfile(php_stream* fp, const char *fname, size_t fname_l
609579 spprintf (error , 4096 , "phar error: Unable to read alias from tar-based phar \"%s\"" , fname );
610580 }
611581 php_stream_close (fp );
612- if (actual_alias ) {
613- zend_string_release_ex (actual_alias , myphar -> is_persistent );
614- }
615582 phar_destroy_phar_data (myphar );
616583 return FAILURE ;
617584 }
@@ -628,9 +595,6 @@ zend_result phar_parse_tarfile(php_stream* fp, const char *fname, size_t fname_l
628595 spprintf (error , 4096 , "phar error: \"%s\" is a corrupted tar file (truncated)" , fname );
629596 }
630597 php_stream_close (fp );
631- if (actual_alias ) {
632- zend_string_release_ex (actual_alias , myphar -> is_persistent );
633- }
634598 phar_destroy_phar_data (myphar );
635599 return FAILURE ;
636600 }
0 commit comments