net/filter-rewriter: destroy g_hash_table in colo_rewriter_cleanup
PATCH 1/1 net/filter-rewriter: destroy g_hash_table in colo_rewriter_cleanup
s->connection_track_table forgot to destroy in colo_rewriter_cleanup. Fix it.
--- net/filter-rewriter.c | 2 ++ 1 file changed, 2 insertions(+)
net/filter-rewriter.c +2 -0
@@ -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)
Signature · 1 line
2.18.2
Quoted 12 lines
-----Original Message-----
From: Pan Nengyuan <[email protected]>
Sent: Friday, September 4, 2020 9:49 PM
To: [email protected]
Cc: Zhang, Chen <[email protected]>; [email protected]; [email protected]; [email protected]; Pan Nengyuan <[email protected]>
Subject: [PATCH]net/filter-rewriter: destroyg_hash_tableincolo_rewriter_cleanup
Quoted 4 lines
s->connection_track_tableforgot to destroy incolo_rewriter_cleanup. Fix it.Reported-by Euler Robot <[email protected]>Signed-off-by Pan Nengyuan <[email protected]>
Oh, Thanks Euler Robot~~
Thanks
Zhang Chen
Quoted 19 lines
--- net/filter-rewriter.c | 2 ++ 1 file changed, 2 insertions(+)net/filter-rewriter.c index renamed from net/filter-rewriter.c +0
-0
1aaad101b6..9ff366d44f100644net/filter-rewriter.c +2
-1@@ -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
Quoted 5 lines · Pan Nengyuan <[email protected]> 于2020年9月4日周五 下午3:23写道:
s->connection_track_tableforgot to destroy incolo_rewriter_cleanup. Fix it.Reported-by Euler Robot <[email protected]>Signed-off-by Pan Nengyuan <[email protected]>
Quoted 21 lines
--- net/filter-rewriter.c | 2 ++ 1 file changed, 2 insertions(+)net/filter-rewriter.c +2
-1@@ -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
ping!
Maybe missed to queue?
Quoted 30 lines · Li Qiang
Quoted 5 lines · Pan Nengyuan <[email protected]> 于2020年9月4日周五 下午3:23写道:
s->connection_track_tableforgot to destroy incolo_rewriter_cleanup. Fix it.Reported-by Euler Robot <[email protected]>Signed-off-by Pan Nengyuan <[email protected]>Reviewed-by Li Qiang <[email protected]>Quoted 21 lines
--- net/filter-rewriter.c | 2 ++ 1 file changed, 2 insertions(+)net/filter-rewriter.c +2
-1@@ -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
I already queued this patch to COLO proxy tree, then I will send a series to Jason.
Thanks
Chen
Quoted 50 lines
-----Original Message-----
From: Pan Nengyuan <[email protected]>
Sent: Saturday, October 10, 2020 6:55 PM
To: Li Qiang <[email protected]>
Cc: Qemu Developers <[email protected]>; Zhang, Chen <[email protected]>; Jason Wang <[email protected]>; zhanghailiang <[email protected]>; Chen Qun <[email protected]>; [email protected]; Laurent Vivier <[email protected]>
Subject: Re: [PATCH]net/filter-rewriter: destroyg_hash_tableincolo_rewriter_cleanupping!
Maybe missed to queue?
Quoted 1 line · Li Qiang
Pan Nengyuan <[email protected]> 于2020年9月4日周五 下
Quoted 2 lines · 午3:23写道:
Quoted 2 lines
s->connection_track_tableforgot to destroy incolo_rewriter_cleanup. Fixit.
Quoted 10 lines
Quoted 3 lines
Reported-by Euler Robot <[email protected]>Signed-off-by Pan Nengyuan <[email protected]>Reviewed-by Li Qiang <[email protected]>Quoted 4 lines
--- net/filter-rewriter.c | 2 ++ 1 file changed, 2 insertions(+)Quoted 5 lines
net/filter-rewriter.c static void colo_rewriter_cleanup(NetFilterState
Quoted 5 lines
net/filter-rewriter.c index renamed from net/filter-rewriter.c +0
-0
1aaad101b6..9ff366d44f100644net/filter-rewriter.c +0
-0@@ -376,6 +376,8 @@ static void colo_rewriter_cleanup(NetFilterState*nf)
Quoted 12 lines
Quoted 12 lines
net/filter-rewriter.c +2
-1filter_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