mirror of
https://github.com/php/php-src.git
synced 2025-08-18 23:18:56 +02:00
ensure freeing of cwd/name happens in all cases
This commit is contained in:
parent
af3dfa23f6
commit
5224d341b6
1 changed files with 6 additions and 6 deletions
|
@ -313,13 +313,13 @@ static int phar_file_action(phar_entry_data *phar, char *mime_type, int code, ch
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} zend_catch {
|
} zend_catch {
|
||||||
if (PHAR_G(cwd)) {
|
|
||||||
efree(PHAR_G(cwd));
|
|
||||||
PHAR_G(cwd) = NULL;
|
|
||||||
PHAR_G(cwd_len) = 0;
|
|
||||||
}
|
|
||||||
efree(name);
|
|
||||||
} zend_end_try();
|
} zend_end_try();
|
||||||
|
if (PHAR_G(cwd)) {
|
||||||
|
efree(PHAR_G(cwd));
|
||||||
|
PHAR_G(cwd) = NULL;
|
||||||
|
PHAR_G(cwd_len) = 0;
|
||||||
|
}
|
||||||
|
efree(name);
|
||||||
zend_bailout();
|
zend_bailout();
|
||||||
}
|
}
|
||||||
return PHAR_MIME_PHP;
|
return PHAR_MIME_PHP;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue