Skip to content

Commit 4082d42

Browse files
committed
ext/phar: Remove duplicate cleaning-up code
1 parent a72778b commit 4082d42

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

ext/phar/phar_object.c

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -486,15 +486,6 @@ PHP_METHOD(Phar, mount)
486486
carry_on:
487487
if (SUCCESS != phar_mount_entry(pphar, actual, actual_len, path, path_len)) {
488488
zend_throw_exception_ex(phar_ce_PharException, 0, "Mounting of %s to %s within phar %s failed", path, actual, arch);
489-
if (path && path == entry) {
490-
efree(entry);
491-
}
492-
493-
if (arch) {
494-
efree(arch);
495-
}
496-
497-
goto finish;
498489
}
499490

500491
if (entry && path && path == entry) {

0 commit comments

Comments
 (0)