]> granicus.if.org Git - php/commitdiff
@-Fixed possible crash in request-shutdown. (Thies)
authorThies C. Arntzen <thies@php.net>
Thu, 24 Feb 2000 13:39:36 +0000 (13:39 +0000)
committerThies C. Arntzen <thies@php.net>
Thu, 24 Feb 2000 13:39:36 +0000 (13:39 +0000)
(pvalue_config_destructor) gets a zval* not a zval**

main/configuration-parser.y

index 637d04d801a3fe21862443d0f4ed8009f7519d3f..b5db10b03c27f36d6080fefcfdf3b51db80bf8cb 100644 (file)
@@ -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);
 }