diff options
author | Dan Fandrich <dan@coneharvesters.com> | 2007-04-04 23:41:35 +0000 |
---|---|---|
committer | Dan Fandrich <dan@coneharvesters.com> | 2007-04-04 23:41:35 +0000 |
commit | c321b9f7046e96aa269635d9deafa357a118e88c (patch) | |
tree | 7f89ef27f77718bce8d69afa9e9fd6daf82d9d56 /lib/url.c | |
parent | 7e74349b86386f0fb33e7323f70b10300d64eaf3 (diff) |
Fixes some more out of memory handling bugs.
Diffstat (limited to 'lib/url.c')
-rw-r--r-- | lib/url.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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(); |