From: Michael Wallner Date: Sun, 18 Jan 2015 09:33:42 +0000 (+0100) Subject: fix leak and invalid dtor X-Git-Tag: RELEASE_3_0_0_RC1~100 X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=commitdiff_plain;h=57d2b7e60f7fa50f2e2a3b062986909489a4bc07;hp=d8beb35c8d7194ef1688cfd8dd6ed40ec8e31464 fix leak and invalid dtor --- 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);