Skip to content

Commit f51c8d5

Browse files
committed
ext/phar: fix for GH-21986 for master
1 parent 0e34806 commit f51c8d5

1 file changed

Lines changed: 2 additions & 6 deletions

File tree

ext/phar/util.c

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -82,14 +82,10 @@ phar_entry_info *phar_get_link_source(phar_entry_info *entry) /* {{{ */
8282

8383
if (NULL != (link_entry = zend_hash_find_ptr(&(entry->phar->manifest), entry->symlink)) ||
8484
NULL != (link_entry = zend_hash_find_ptr(&(entry->phar->manifest), link))) {
85-
if (link != entry->symlink) {
86-
zend_string_release(link);
87-
}
85+
zend_string_release(link);
8886
entry = link_entry;
8987
} else {
90-
if (link != entry->symlink) {
91-
zend_string_release(link);
92-
}
88+
zend_string_release(link);
9389
return NULL;
9490
}
9591
}

0 commit comments

Comments
 (0)