From 57d2b7e60f7fa50f2e2a3b062986909489a4bc07 Mon Sep 17 00:00:00 2001 From: Michael Wallner Date: Sun, 18 Jan 2015 10:33:42 +0100 Subject: [PATCH] fix leak and invalid dtor --- php_http_querystring.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/php_http_querystring.c b/php_http_querystring.c index 1980b11..84398a3 100644 --- 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); -- 2.30.2