Browse Source

http: release strbuf on disabled alternates

This likely has no real-world impact on memory usage,
but it is cleaner for future readers.

Fixes: abcbdc0389 ("http: respect protocol.*.allow=user for http-alternates")
Signed-off-by: Eric Wong <e@80x24.org>
Reviewed-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
maint
Eric Wong 8 years ago committed by Junio C Hamano
parent
commit
5cae73d5d2
  1. 2
      http-walker.c

2
http-walker.c

@ -319,6 +319,8 @@ static void process_alternates_response(void *callback_data) @@ -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);
}
}
}

Loading…
Cancel
Save