]> granicus.if.org Git - curl/commitdiff
multi: Fixed a memory leak on OOM condition
authorDan Fandrich <dan@coneharvesters.com>
Thu, 23 Jan 2014 23:22:08 +0000 (00:22 +0100)
committerDan Fandrich <dan@coneharvesters.com>
Thu, 23 Jan 2014 23:22:08 +0000 (00:22 +0100)
lib/multi.c

index dc7776cde2efd33deccaca310a629026b7eb6fed..398be37a9d8cb021b1b07e9b99d7a92b34bee0d5 100644 (file)
@@ -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;