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:
9e422b1
)
fix leak
author
Michael Wallner
<mike@php.net>
Tue, 20 Feb 2018 12:43:02 +0000
(13:43 +0100)
committer
Michael Wallner
<mike@php.net>
Tue, 20 Feb 2018 12:43:02 +0000
(13:43 +0100)
src/php_http_message.c
patch
|
blob
|
history
diff --git
a/src/php_http_message.c
b/src/php_http_message.c
index d076b6aef6173a69e914d24a3135c208535ee083..7d8a6f7dccd690065b763531b6da81d4d2206335 100644
(file)
--- a/
src/php_http_message.c
+++ b/
src/php_http_message.c
@@
-640,9
+640,7
@@
static void php_http_message_object_prophandler_set_headers(php_http_message_obj
zend_hash_init(&obj->message->hdrs, zend_hash_num_elements(src), NULL, ZVAL_PTR_DTOR, 0);
array_copy(HASH_OF(value), &obj->message->hdrs);
- if (GC_REFCOUNT(&garbage) <= 1 && (garbage.u.flags & HASH_FLAG_INITIALIZED)) {
- efree(HT_GET_DATA_ADDR(&garbage));
- }
+ zend_hash_destroy(&garbage);
if (converted) {
zval_ptr_dtor(value);