fix out of memory handling issue

This commit is contained in:
Yang Tse 2007-04-06 20:53:15 +00:00
parent e9ffa9a3b8
commit 0d635a1119

View File

@ -1170,7 +1170,7 @@ CURLcode Curl_proxyCONNECT(struct connectdata *conn,
if(!host) { if(!host) {
free(req_buffer); free(req_buffer);
free(host_port); free(host_port);
result = CURLE_OUT_OF_MEMORY; return CURLE_OUT_OF_MEMORY;
} }
} }
if(!checkheaders(data, "Proxy-Connection:")) if(!checkheaders(data, "Proxy-Connection:"))