Commit da9864fb authored by Dan Fandrich's avatar Dan Fandrich
Browse files

multi: Fixed a memory leak on OOM condition

parent 755dc2f0
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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;