X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=php_http_querystring.c;h=84398a3b0d534ece1584caabd5ca65890a53f1af;hb=a41703eafb1f1bb7f2968e97d471499c986a471b;hp=77df3215dfaa7daaf6fc009944b050eda8ea12dd;hpb=7b6175452cb0a9154da31dd571c1425951ec6547;p=m6w6%2Fext-http diff --git a/php_http_querystring.c b/php_http_querystring.c index 77df321..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); @@ -344,7 +343,7 @@ PHP_METHOD(HttpQueryString, getGlobalInstance) php_http_expect(SUCCESS == zend_parse_parameters_none(), invalid_arg, return); zs = zend_string_init(ZEND_STRL("instance"), 0); - instance = zend_std_get_static_property(php_http_querystring_class_entry, zs, 0, NULL); + instance = zend_std_get_static_property(php_http_querystring_class_entry, zs, 0); zend_string_release(zs); if (Z_TYPE_P(instance) != IS_OBJECT) {