qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] net/filter-rewriter: destroy g_hash_table in colo_rewriter_cleanup
@ 2020-09-04 13:49 Pan Nengyuan
  2020-09-04 15:30 ` Zhang, Chen
  2020-09-05  0:44 ` Li Qiang
  0 siblings, 2 replies; 5+ messages in thread
From: Pan Nengyuan @ 2020-09-04 13:49 UTC (permalink / raw)
  To: qemu-devel
  Cc: chen.zhang, jasowang, Pan Nengyuan, zhang.zhanghailiang,
	kuhn.chenqun

s->connection_track_table forgot to destroy in colo_rewriter_cleanup. Fix it.

Reported-by: Euler Robot <euler.robot@huawei.com>
Signed-off-by: Pan Nengyuan <pannengyuan@huawei.com>
---
 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



^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2020-10-10 16:23 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-09-04 13:49 [PATCH] net/filter-rewriter: destroy g_hash_table in colo_rewriter_cleanup Pan Nengyuan
2020-09-04 15:30 ` Zhang, Chen
2020-09-05  0:44 ` Li Qiang
2020-10-10 10:54   ` Pan Nengyuan
2020-10-10 16:22     ` Zhang, Chen

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 NNTP newsgroup(s).