projects
/
m6w6
/
ext-http
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
|
github
raw
|
patch
| inline |
side by side
(parent:
94b41df
)
fix leak
author
Michael Wallner
<mike@php.net>
Mon, 13 Feb 2012 13:30:50 +0000
(13:30 +0000)
committer
Michael Wallner
<mike@php.net>
Mon, 13 Feb 2012 13:30:50 +0000
(13:30 +0000)
php_http_cookie.c
patch
|
blob
|
history
diff --git
a/php_http_cookie.c
b/php_http_cookie.c
index 36fb1d4859c6e2abae4b0dd4712d330f26d4043c..d46f4146e9f8782ddecfdd6ed14b6bfb8702d00c 100644
(file)
--- 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)