aboutsummaryrefslogtreecommitdiff
path: root/lib/http_proxy.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2015-05-08 14:42:59 +0200
committerDaniel Stenberg <daniel@haxx.se>2015-05-18 08:57:18 +0200
commit783b3c7b427dce4b1906709cef350af5e9623673 (patch)
treed4a92c0c187c3cafb38fefc09a78dd3946f90232 /lib/http_proxy.c
parent02ec1ced9ba3bf70f6198b39c39b15fc80c97f09 (diff)
http2: separate multiplex/pipelining + cleanup memory leaks
Diffstat (limited to 'lib/http_proxy.c')
-rw-r--r--lib/http_proxy.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/http_proxy.c b/lib/http_proxy.c
index e7d848240..5ab9915a6 100644
--- a/lib/http_proxy.c
+++ b/lib/http_proxy.c
@@ -135,7 +135,7 @@ CURLcode Curl_proxyCONNECT(struct connectdata *conn,
host_port = aprintf("%s:%hu", hostname, remote_port);
if(!host_port) {
- free(req_buffer);
+ Curl_add_buffer_free(req_buffer);
return CURLE_OUT_OF_MEMORY;
}
@@ -155,7 +155,7 @@ CURLcode Curl_proxyCONNECT(struct connectdata *conn,
hostname, conn->bits.ipv6_ip?"]":"",
remote_port);
if(!hostheader) {
- free(req_buffer);
+ Curl_add_buffer_free(req_buffer);
return CURLE_OUT_OF_MEMORY;
}
@@ -163,7 +163,7 @@ CURLcode Curl_proxyCONNECT(struct connectdata *conn,
host = aprintf("Host: %s\r\n", hostheader);
if(!host) {
free(hostheader);
- free(req_buffer);
+ Curl_add_buffer_free(req_buffer);
return CURLE_OUT_OF_MEMORY;
}
}
@@ -212,7 +212,7 @@ CURLcode Curl_proxyCONNECT(struct connectdata *conn,
failf(data, "Failed sending CONNECT to proxy");
}
- free(req_buffer);
+ Curl_add_buffer_free(req_buffer);
if(result)
return result;