From 492dfca65d0147f2920b38d724186fdf39b2541b Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Thu, 5 Mar 2015 15:19:07 +0100 Subject: multi: fix memory-leak on timeout (regression) Since 1342a96ecfe0d44, a timeout detected in the multi state machine didn't necesarily clear everything up, like formpost data. Bug: https://github.com/bagder/curl/issues/147 Reported-by: Michel Promonet Patched-by: Michel Promonet --- lib/multi.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/multi.c b/lib/multi.c index 41648271d..caf51de77 100644 --- a/lib/multi.c +++ b/lib/multi.c @@ -1016,6 +1016,7 @@ static CURLMcode multi_runsingle(struct Curl_multi *multi, disconnect_conn = TRUE; } result = CURLE_OPERATION_TIMEDOUT; + (void)Curl_done(&data->easy_conn, result, TRUE); /* Skip the statemachine and go directly to error handling section. */ goto statemachine_end; } -- cgit v1.2.3