aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Fandrich <dan@coneharvesters.com>2014-01-24 00:22:08 +0100
committerDan Fandrich <dan@coneharvesters.com>2014-01-24 00:22:08 +0100
commitda9864fb7236338dfbb48befd3e4facd4478dec0 (patch)
tree7dde8fde618ddc8bdce4977bac5f5675ee297bd4
parent755dc2f058c6b01cb8161a7c07367ffaabb84ccc (diff)
multi: Fixed a memory leak on OOM condition
-rw-r--r--lib/multi.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/multi.c b/lib/multi.c
index dc7776cde..398be37a9 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;