diff options
author | Daniel Stenberg <daniel@haxx.se> | 2015-03-05 15:19:07 +0100 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2015-03-05 15:43:38 +0100 |
commit | 492dfca65d0147f2920b38d724186fdf39b2541b (patch) | |
tree | b26b68017de3db9dc0fd87c07e74c53de0a95243 | |
parent | 64736dd1bed9f98f6a295dc7f164cee2ade9146d (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.c | 1 |
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; } |