diff options
author | Thies C. Arntzen <thies@php.net> | 2000-02-24 13:39:36 +0000 |
---|---|---|
committer | Thies C. Arntzen <thies@php.net> | 2000-02-24 13:39:36 +0000 |
commit | 4a37c618e6253171f0183131e41d4925a61287f7 (patch) | |
tree | 279afa3234278de15f276d102bbc05f260dd3711 /main/configuration-parser.y | |
parent | d64c1652e259e00230b3bf25f933955b4f94d5c9 (diff) | |
download | php-git-4a37c618e6253171f0183131e41d4925a61287f7.tar.gz |
@-Fixed possible crash in request-shutdown. (Thies)
(pvalue_config_destructor) gets a zval* not a zval**
Diffstat (limited to 'main/configuration-parser.y')
-rw-r--r-- | main/configuration-parser.y | 7 |
1 files changed, 3 insertions, 4 deletions
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); } |