Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Hengeveld <nickh@reactrix.com>2005-11-12 20:38:28 +0300
committerJunio C Hamano <junkio@cox.net>2005-11-13 10:43:11 +0300
commit54a9ba0d44c37c43670087793bfeb1b54d718cdb (patch)
treeeb74d2b84f16a92b38fe86749f568702e29c6383 /http-fetch.c
parentacc075a8ad5ee798c170fc2276e1c840a03b5fa4 (diff)
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>
Diffstat (limited to 'http-fetch.c')
-rw-r--r--http-fetch.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/http-fetch.c b/http-fetch.c
index 99b6cc7e41..b8aa965ea3 100644
--- a/http-fetch.c
+++ b/http-fetch.c
@@ -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);