diff options
author | Pan Nengyuan | 2020-10-16 07:51:59 +0200 |
---|---|---|
committer | Jason Wang | 2020-11-11 09:52:23 +0100 |
commit | b492a4b8cad9977334fa4c80983e686184d6bb30 (patch) | |
tree | 967e5a037a978364040e7e42a609eba0bf581d71 | |
parent | virtio-net: Set mac address to hardware if the peer is vdpa (diff) | |
download | qemu-b492a4b8cad9977334fa4c80983e686184d6bb30.tar.gz qemu-b492a4b8cad9977334fa4c80983e686184d6bb30.tar.xz qemu-b492a4b8cad9977334fa4c80983e686184d6bb30.zip |
net/filter-rewriter: destroy g_hash_table in colo_rewriter_cleanup
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>
-rw-r--r-- | net/filter-rewriter.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/net/filter-rewriter.c b/net/filter-rewriter.c index dc3c27a489..e063a818b7 100644 --- a/net/filter-rewriter.c +++ b/net/filter-rewriter.c @@ -381,6 +381,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) |