From 783b3c7b427dce4b1906709cef350af5e9623673 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Fri, 8 May 2015 14:42:59 +0200 Subject: http2: separate multiplex/pipelining + cleanup memory leaks --- lib/http_proxy.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'lib/http_proxy.c') 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; -- cgit v1.2.3