diff mbox series

[PULL,02/17] net/filter-rewriter: destroy g_hash_table in colo_rewriter_cleanup

Message ID 1605100301-11317-3-git-send-email-jasowang@redhat.com
State New
Headers show
Series [PULL,01/17] virtio-net: Set mac address to hardware if the peer is vdpa | expand

Commit Message

Jason Wang Nov. 11, 2020, 1:11 p.m. UTC
From: Pan Nengyuan <pannengyuan@huawei.com>

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>
Signed-off-by: Zhang Chen <chen.zhang@intel.com>
Reviewed-by: Zhang Chen <chen.zhang@intel.com>
Reviewed-by: Li Qiang <liq3ea@gmail.com>
Signed-off-by: Jason Wang <jasowang@redhat.com>
 net/filter-rewriter.c | 2 ++
 1 file changed, 2 insertions(+)
diff mbox series


diff --git a/net/filter-rewriter.c b/net/filter-rewriter.c
index dc3c27a..e063a81 100644
--- a/net/filter-rewriter.c
+++ b/net/filter-rewriter.c
@@ -381,6 +381,8 @@  static void colo_rewriter_cleanup(NetFilterState *nf)
+    g_hash_table_destroy(s->connection_track_table);
 static void colo_rewriter_setup(NetFilterState *nf, Error **errp)