aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2004-05-12 09:02:54 +0000
committerDaniel Stenberg <daniel@haxx.se>2004-05-12 09:02:54 +0000
commita219d774fe558e62a790f55f43fc7f47e1c0b13e (patch)
tree8872c699b8a1266f78439389d072a12bce305540
parent005042e973cb6e42b8bf76ae15a72f1482c43e6b (diff)
even if Curl_do() fails, we must call Curl_done() to do proper cleaning up
-rw-r--r--lib/transfer.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/transfer.c b/lib/transfer.c
index 039abf889..67f328971 100644
--- a/lib/transfer.c
+++ b/lib/transfer.c
@@ -2029,6 +2029,9 @@ CURLcode Curl_perform(struct SessionHandle *data)
if(CURLE_OK == res)
res = res2;
}
+ else
+ /* Curl_do() failed, clean up left-overs in the done-call */
+ res2 = Curl_done(conn);
/*
* Important: 'conn' cannot be used here, since it may have been closed