* [PATCH] http: release strbuf on disabled alternates
@ 2017-03-04 1:48 Eric Wong
0 siblings, 0 replies; only message in thread
From: Eric Wong @ 2017-03-04 1:48 UTC (permalink / raw)
To: spew
This likely has no real-world impact on memory usage,
but it is cleaner for future readers.
Fixes: abcbdc03895f ("http: respect protocol.*.allow=user for http-alternates")
Signed-off-by: Eric Wong <e@80x24.org>
---
http-walker.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/http-walker.c b/http-walker.c
index 626badfe66..278580b148 100644
--- a/http-walker.c
+++ b/http-walker.c
@@ -320,6 +320,8 @@ static void process_alternates_response(void *callback_data)
while (tail->next != NULL)
tail = tail->next;
tail->next = newalt;
+ } else {
+ strbuf_release(&target);
}
}
}
--
EW
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2017-03-04 1:48 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-03-04 1:48 [PATCH] http: release strbuf on disabled alternates Eric Wong
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).