From 54a9ba0d44c37c43670087793bfeb1b54d718cdb Mon Sep 17 00:00:00 2001 From: Nick Hengeveld Date: Sat, 12 Nov 2005 09:38:28 -0800 Subject: [PATCH] Fix fd leak in http-fetch Added a call to finish_request to clean up resources if the server returned a 404 and there are no alternates left to try. Signed-off-by: Nick Hengeveld Signed-off-by: Junio C Hamano --- http-fetch.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/http-fetch.c b/http-fetch.c index 99b6cc7e41..b8aa965ea3 100644 --- a/http-fetch.c +++ b/http-fetch.c @@ -632,6 +632,8 @@ static void process_curl_messages(void) request->repo = request->repo->next; start_request(request); + } else { + finish_request(request); } } else { finish_request(request); -- 2.11.4.GIT