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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user