From: Yang Tse Date: Fri, 6 Apr 2007 20:53:15 +0000 (+0000) Subject: fix out of memory handling issue X-Git-Tag: curl-7_16_2~20 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0d635a11199c3eae6f2ad8cb02e588fe189cd3c7;p=curl fix out of memory handling issue --- diff --git a/lib/http.c b/lib/http.c index b59779b1b..011f1141e 100644 --- a/lib/http.c +++ b/lib/http.c @@ -1170,7 +1170,7 @@ CURLcode Curl_proxyCONNECT(struct connectdata *conn, if(!host) { free(req_buffer); free(host_port); - result = CURLE_OUT_OF_MEMORY; + return CURLE_OUT_OF_MEMORY; } } if(!checkheaders(data, "Proxy-Connection:"))