From: Nick Hengeveld Date: Sat, 12 Nov 2005 17:38:28 +0000 (-0800) Subject: Fix fd leak in http-fetch X-Git-Tag: v0.99.9i^2~18 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=54a9ba0d44c37c43670087793bfeb1b54d718cdb;p=git.git 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 --- diff --git a/http-fetch.c b/http-fetch.c index 99b6cc7e..b8aa965e 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);