From: Michael Wallner Date: Mon, 13 Feb 2012 13:30:50 +0000 (+0000) Subject: fix leak X-Git-Tag: DEV_2-before-client~39 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=5d94cd9e46b7eb30149b4aebde1aa14fce2ced43;p=m6w6%2Fext-http fix leak --- diff --git a/php_http_cookie.c b/php_http_cookie.c index 36fb1d4..d46f414 100644 --- a/php_http_cookie.c +++ b/php_http_cookie.c @@ -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)