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 <nickh@reactrix.com>
Signed-off-by: Junio C Hamano <junkio@cox.net>
This commit is contained in:
Nick Hengeveld 2005-11-12 09:38:28 -08:00 committed by Junio C Hamano
parent acc075a8ad
commit 54a9ba0d44

View File

@ -632,6 +632,8 @@ static void process_curl_messages(void)
request->repo = request->repo =
request->repo->next; request->repo->next;
start_request(request); start_request(request);
} else {
finish_request(request);
} }
} else { } else {
finish_request(request); finish_request(request);