ensure freeing of cwd/name happens in all cases

This commit is contained in:
Greg Beaver 2008-04-22 17:34:00 +00:00
parent af3dfa23f6
commit 5224d341b6

View file

@ -313,13 +313,13 @@ static int phar_file_action(phar_entry_data *phar, char *mime_type, int code, ch
}
}
} zend_catch {
if (PHAR_G(cwd)) {
efree(PHAR_G(cwd));
PHAR_G(cwd) = NULL;
PHAR_G(cwd_len) = 0;
}
efree(name);
} zend_end_try();
if (PHAR_G(cwd)) {
efree(PHAR_G(cwd));
PHAR_G(cwd) = NULL;
PHAR_G(cwd_len) = 0;
}
efree(name);
zend_bailout();
}
return PHAR_MIME_PHP;