fix segfault (now all tests pass here)

This commit is contained in:
Greg Beaver 2008-04-28 23:00:46 +00:00
parent a78fd15fae
commit 984ea1f437

View File

@ -317,7 +317,7 @@ static int phar_file_action(phar_entry_data *phar, char *mime_type, int code, ch
}
PHAR_G(cwd_init) = 0;
efree(name);
if (EG(return_value_ptr_ptr)) {
if (EG(return_value_ptr_ptr) && *EG(return_value_ptr_ptr)) {
zval_ptr_dtor(EG(return_value_ptr_ptr));
}
if (EG(exception)) {