Received: from list by lists.gnu.org with archive (Exim 4.90_1) id 1kRCWY-00014k-H7 for mharc-qemu-trivial@gnu.org; Sat, 10 Oct 2020 06:54:50 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:43538) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kRCWV-00014R-Vz; Sat, 10 Oct 2020 06:54:48 -0400 Received: from szxga06-in.huawei.com ([45.249.212.32]:59908 helo=huawei.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kRCWS-0001i4-JC; Sat, 10 Oct 2020 06:54:47 -0400 Received: from DGGEMS402-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id 66CB8A35E6F38AB23562; Sat, 10 Oct 2020 18:54:39 +0800 (CST) Received: from [10.174.178.98] (10.174.178.98) by DGGEMS402-HUB.china.huawei.com (10.3.19.202) with Microsoft SMTP Server id 14.3.487.0; Sat, 10 Oct 2020 18:54:33 +0800 Subject: Re: [PATCH] net/filter-rewriter: destroy g_hash_table in colo_rewriter_cleanup To: Li Qiang CC: Qemu Developers , Zhang Chen , Jason Wang , zhanghailiang , Chen Qun , , Laurent Vivier References: <20200904134908.1396-1-pannengyuan@huawei.com> From: Pan Nengyuan Message-ID: Date: Sat, 10 Oct 2020 18:54:32 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.2.2 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-Originating-IP: [10.174.178.98] X-CFilter-Loop: Reflected Received-SPF: pass client-ip=45.249.212.32; envelope-from=pannengyuan@huawei.com; helo=huawei.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/10/10 06:54:40 X-ACL-Warn: Detected OS = Linux 3.11 and newer [fuzzy] X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, NICE_REPLY_A=-0.208, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-trivial@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 10 Oct 2020 10:54:48 -0000 ping! Maybe missed to queue? On 2020/9/5 8:44, Li Qiang wrote: > Pan Nengyuan 于2020年9月4日周五 下午3:23写道: >> >> s->connection_track_table forgot to destroy in colo_rewriter_cleanup. Fix it. >> >> Reported-by: Euler Robot >> Signed-off-by: Pan Nengyuan > > Reviewed-by: Li Qiang > >> --- >> net/filter-rewriter.c | 2 ++ >> 1 file changed, 2 insertions(+) >> >> diff --git a/net/filter-rewriter.c b/net/filter-rewriter.c >> index 1aaad101b6..9ff366d44f 100644 >> --- a/net/filter-rewriter.c >> +++ b/net/filter-rewriter.c >> @@ -376,6 +376,8 @@ static void colo_rewriter_cleanup(NetFilterState *nf) >> filter_rewriter_flush(nf); >> g_free(s->incoming_queue); >> } >> + >> + g_hash_table_destroy(s->connection_track_table); >> } >> >> static void colo_rewriter_setup(NetFilterState *nf, Error **errp) >> -- >> 2.18.2 >> >>