From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS24940 178.63.0.0/16 X-Spam-Status: No, score=-2.6 required=3.0 tests=BAYES_00,RCVD_IN_XBL,SPF_FAIL, SPF_HELO_FAIL,TO_EQ_FM_DOM_SPF_FAIL shortcircuit=no autolearn=no autolearn_force=no version=3.4.0 Received: from 80x24.org (tor-exit-01.thehappy3.com [178.63.97.34]) by dcvr.yhbt.net (Postfix) with ESMTP id D176820133 for ; Sat, 4 Mar 2017 01:48:48 +0000 (UTC) From: Eric Wong To: spew@80x24.org Subject: [PATCH] http: release strbuf on disabled alternates Date: Sat, 4 Mar 2017 01:48:42 +0000 Message-Id: <20170304014842.32387-1-e@80x24.org> List-Id: 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 --- 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