From: Dan Fandrich Date: Thu, 23 Jan 2014 23:22:08 +0000 (+0100) Subject: multi: Fixed a memory leak on OOM condition X-Git-Tag: curl-7_35_0~24 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=da9864fb7236338dfbb48befd3e4facd4478dec0;p=thirdparty%2Fcurl.git multi: Fixed a memory leak on OOM condition --- diff --git a/lib/multi.c b/lib/multi.c index dc7776cde2..398be37a9d 100644 --- a/lib/multi.c +++ b/lib/multi.c @@ -329,6 +329,7 @@ struct Curl_multi *Curl_multi_handle(int hashsize, /* socket hash */ multi->conn_cache = NULL; Curl_close(multi->closure_handle); multi->closure_handle = NULL; + Curl_llist_destroy(multi->msglist, NULL); free(multi); return NULL;