fix leak
authorMichael Wallner <mike@php.net>
Mon, 13 Feb 2012 13:30:50 +0000 (13:30 +0000)
committerMichael Wallner <mike@php.net>
Mon, 13 Feb 2012 13:30:50 +0000 (13:30 +0000)
php_http_cookie.c

index 36fb1d4859c6e2abae4b0dd4712d330f26d4043c..d46f4146e9f8782ddecfdd6ed14b6bfb8702d00c 100644 (file)
@@ -168,7 +168,9 @@ static void add_entry(php_http_cookie_list_t *list, char **allowed_extras, long
                } else {
                        zend_hash_update(&list->cookies, key->str, key->len, (void *) &arg, sizeof(zval *), NULL);
                }
+               return;
        }
+       zval_ptr_dtor(&arg);
 }
 
 PHP_HTTP_API php_http_cookie_list_t *php_http_cookie_list_parse(php_http_cookie_list_t *list, const char *str, size_t len, long flags, char **allowed_extras TSRMLS_DC)