1
0
mirror of https://github.com/php/php-src.git synced 2026-03-28 18:22:42 +01:00

- Fixed possible NULL ptr dereference

This commit is contained in:
Felipe Pena
2013-10-20 09:04:24 -02:00
parent b6feabc8c6
commit 52555a7894

View File

@@ -1262,8 +1262,10 @@ alias_success:
spprintf(error, 0, "alias \"%s\" is already used for archive \"%s\" cannot be overloaded with \"%s\"", alias, (*fd_ptr)->fname, fname);
}
if (SUCCESS == phar_free_alias(*fd_ptr, alias, alias_len TSRMLS_CC)) {
efree(*error);
*error = NULL;
if (error) {
efree(*error);
*error = NULL;
}
}
return FAILURE;
}