Skip to content

Commit

Permalink
Fix fd leak in http-fetch
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Nick Hengeveld authored and Junio C Hamano committed Nov 13, 2005
1 parent acc075a commit 54a9ba0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions http-fetch.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 54a9ba0

Please sign in to comment.