mirror of
https://github.com/php/php-src.git
synced 2024-09-30 06:16:08 +00:00
@-Fixed possible crash in request-shutdown. (Thies)
(pvalue_config_destructor) gets a zval* not a zval**
This commit is contained in:
parent
d64c1652e2
commit
4a37c618e6
@ -124,12 +124,11 @@ static void yyerror(char *str)
|
||||
}
|
||||
|
||||
|
||||
static void pvalue_config_destructor(zval **pvalue)
|
||||
static void pvalue_config_destructor(zval *pvalue)
|
||||
{
|
||||
if ((*pvalue)->type == IS_STRING && (*pvalue)->value.str.val != empty_string) {
|
||||
free((*pvalue)->value.str.val);
|
||||
if (pvalue->type == IS_STRING && pvalue->value.str.val != empty_string) {
|
||||
free(pvalue->value.str.val);
|
||||
}
|
||||
free(*pvalue);
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user