[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] net/filter-rewriter: destroy g_hash_table in colo_rewriter_clean
From: |
Pan Nengyuan |
Subject: |
[PATCH] net/filter-rewriter: destroy g_hash_table in colo_rewriter_cleanup |
Date: |
Fri, 4 Sep 2020 09:49:08 -0400 |
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
- [PATCH] net/filter-rewriter: destroy g_hash_table in colo_rewriter_cleanup,
Pan Nengyuan <=