X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=http_functions.c;h=05f6b7ee14a7bed0ee15a8bfedcfb3450b0629d9;hp=bf3fab60a99111b9d96670808625bb4094dac54e;hb=af674f03c32f0f56b7f8c67e61c7e86b3ea23be5;hpb=71904cb99d728c43ebebb10b695fbb9ac580e66f diff --git a/http_functions.c b/http_functions.c index bf3fab6..05f6b7e 100644 --- a/http_functions.c +++ b/http_functions.c @@ -975,11 +975,12 @@ PHP_FUNCTION(http_build_query) } if (SUCCESS != http_urlencode_hash_implementation_ex(HASH_OF(formdata), formstr, arg_sep, prefix, prefix_len, NULL, 0, NULL, 0, (Z_TYPE_P(formdata) == IS_OBJECT ? formdata : NULL) TSRMLS_CC)) { - phpstr_dtor(formstr); + phpstr_free(formstr); RETURN_FALSE; } if (!formstr->used) { + phpstr_free(formstr); RETURN_NULL(); }