From: Michael Wallner Date: Fri, 15 Aug 2008 11:41:38 +0000 (+0000) Subject: fix memory curruption, thanks to Rob X-Git-Tag: RELEASE_1_6_2~11 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=b9e4613eef61c3573a7dee58f555b2389698a097;p=m6w6%2Fext-http fix memory curruption, thanks to Rob --- diff --git a/http_request_api.c b/http_request_api.c index 2d853a2..ab69200 100644 --- a/http_request_api.c +++ b/http_request_api.c @@ -772,14 +772,12 @@ PHP_HTTP_API STATUS _http_request_prepare(http_request *request, HashTable *opti if (header_key.type == HASH_KEY_IS_STRING) { char header[1024]; - ZVAL_ADDREF(*header_val); convert_to_string_ex(header_val); if (!strcasecmp(header_key.str, "range")) { range_req = 1; } snprintf(header, sizeof(header), "%s: %s", header_key.str, Z_STRVAL_PP(header_val)); request->_cache.headers = curl_slist_append(request->_cache.headers, header); - zval_ptr_dtor(header_val); } } }