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:
d8beb35
)
fix leak and invalid dtor
author
Michael Wallner
<mike@php.net>
Sun, 18 Jan 2015 09:33:42 +0000
(10:33 +0100)
committer
Michael Wallner
<mike@php.net>
Sun, 18 Jan 2015 09:33:42 +0000
(10:33 +0100)
php_http_querystring.c
patch
|
blob
|
history
diff --git
a/php_http_querystring.c
b/php_http_querystring.c
index 1980b11659af9bb4dd5b1bb1bc8b8edda74524c2..84398a3b0d534ece1584caabd5ca65890a53f1af 100644
(file)
--- a/
php_http_querystring.c
+++ b/
php_http_querystring.c
@@
-39,6
+39,7
@@
static inline void php_http_querystring_set(zval *instance, zval *params, int fl
php_http_querystring_update(&qa, params, NULL);
zend_update_property(php_http_querystring_class_entry, instance, ZEND_STRL("queryArray"), &qa);
+ zval_ptr_dtor(&qa);
}
static inline void php_http_querystring_str(zval *instance, zval *return_value)
@@
-185,8
+186,6
@@
ZEND_RESULT_CODE php_http_querystring_parse(HashTable *ht, const char *str, size
} while (*asi_str);
opts.param = php_http_params_separator_init(&arr);
-
- zval_ptr_dtor(&arr);
}
ZVAL_NULL(&opts.defval);