aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2015-03-05 15:19:07 +0100
committerDaniel Stenberg <daniel@haxx.se>2015-03-05 15:43:38 +0100
commit492dfca65d0147f2920b38d724186fdf39b2541b (patch)
treeb26b68017de3db9dc0fd87c07e74c53de0a95243
parent64736dd1bed9f98f6a295dc7f164cee2ade9146d (diff)
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
-rw-r--r--lib/multi.c1
1 files changed, 1 insertions, 0 deletions
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;
}