summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLibravatar Nick Hengeveld <nickh@reactrix.com>2005-11-12 09:38:28 -0800
committerLibravatar Junio C Hamano <junkio@cox.net>2005-11-12 23:43:11 -0800
commit54a9ba0d44c37c43670087793bfeb1b54d718cdb (patch)
treeeb74d2b84f16a92b38fe86749f568702e29c6383
parentFix for multiple alternates requests in http-fetch (diff)
downloadtgif-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 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);