From: Thies C. Arntzen Date: Thu, 24 Feb 2000 13:39:36 +0000 (+0000) Subject: @-Fixed possible crash in request-shutdown. (Thies) X-Git-Tag: PHP-4.0-RC1~442 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4a37c618e6253171f0183131e41d4925a61287f7;p=php @-Fixed possible crash in request-shutdown. (Thies) (pvalue_config_destructor) gets a zval* not a zval** --- diff --git a/main/configuration-parser.y b/main/configuration-parser.y index 637d04d801..b5db10b03c 100644 --- a/main/configuration-parser.y +++ b/main/configuration-parser.y @@ -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); }