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 =
|
||||||
request->repo->next;
|
request->repo->next;
|
||||||
start_request(request);
|
start_request(request);
|
||||||
|
} else {
|
||||||
|
finish_request(request);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
finish_request(request);
|
finish_request(request);
|
||||||
|
Loading…
Reference in New Issue
Block a user