mirror of
https://github.com/git/git
synced 2024-08-25 10:45:59 +00:00
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:
parent
acc075a8ad
commit
54a9ba0d44
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue