summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--http-walker.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/http-walker.c b/http-walker.c
index 6396cebe5e..ab7d5537ae 100644
--- a/http-walker.c
+++ b/http-walker.c
@@ -319,6 +319,8 @@ static void process_alternates_response(void *callback_data)
while (tail->next != NULL)
tail = tail->next;
tail->next = newalt;
+ } else {
+ strbuf_release(&target);
}
}
}