aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Hengeveld <nickh@reactrix.com>2005-11-12 09:38:28 -0800
committerJunio C Hamano <junkio@cox.net>2005-11-12 23:43:11 -0800
commit54a9ba0d44c37c43670087793bfeb1b54d718cdb (patch)
treeeb74d2b84f16a92b38fe86749f568702e29c6383
parentacc075a8ad5ee798c170fc2276e1c840a03b5fa4 (diff)
downloadgit-54a9ba0d44c37c43670087793bfeb1b54d718cdb.tar.gz
git-54a9ba0d44c37c43670087793bfeb1b54d718cdb.tar.xz
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>
-rw-r--r--http-fetch.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/http-fetch.c b/http-fetch.c
index 99b6cc7e4..b8aa965ea 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);