Fixes some more out of memory handling bugs.

This commit is contained in:
Dan Fandrich
2007-04-04 23:41:35 +00:00
parent 7e74349b86
commit c321b9f704
4 changed files with 9 additions and 1 deletions

View File

@@ -2856,6 +2856,8 @@ static CURLcode CreateConnection(struct SessionHandle *data,
/* Initialize the pipeline lists */
conn->send_pipe = Curl_llist_alloc((curl_llist_dtor) llist_dtor);
conn->recv_pipe = Curl_llist_alloc((curl_llist_dtor) llist_dtor);
if (!conn->send_pipe || !conn->recv_pipe)
return CURLE_OUT_OF_MEMORY;
/* Store creation time to help future close decision making */
conn->created = Curl_tvnow();