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>
Nick Hengeveld committed
Nov 12, 2005 at 09:38 UTC
54a9ba0d44c37c43670087793bfeb1b54d718cdb
1 file changed
+2
http-fetch.c
+2
@@ -632,6 +632,8 @@ static void process_curl_messages(void)
632
request->repo =
633
request->repo->next;
634
start_request(request);
635
+ } else {
636
+ finish_request(request);
637
}
638
} else {
639
finish_request(request);