diff options
author | Pan Nengyuan <pannengyuan@huawei.com> | 2020-10-16 13:51:59 +0800 |
---|---|---|
committer | Jason Wang <jasowang@redhat.com> | 2020-11-11 16:52:23 +0800 |
commit | b492a4b8cad9977334fa4c80983e686184d6bb30 (patch) | |
tree | 967e5a037a978364040e7e42a609eba0bf581d71 /net | |
parent | e87936ea299d8204e496b5ff19ffdca46c21610e (diff) |
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>
Diffstat (limited to 'net')
-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) |