Fixed a memory leak during OOM in the multi timeout code
This commit is contained in:
parent
ebbe694e78
commit
ab81f6c7c4
@ -2447,8 +2447,10 @@ multi_addtimeout(struct curl_llist *timeoutlist,
|
||||
/* else
|
||||
this is the first timeout on the list */
|
||||
|
||||
if(!Curl_llist_insert_next(timeoutlist, prev, timedup))
|
||||
if(!Curl_llist_insert_next(timeoutlist, prev, timedup)) {
|
||||
free(timedup);
|
||||
return CURLM_OUT_OF_MEMORY;
|
||||
}
|
||||
|
||||
return CURLM_OK;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user