Skip to contentSkip to conversation

net/filter-rewriter: destroy g_hash_table in colo_rewriter_cleanup

PATCH In review Pan Nengyuan 3 participants 5 messages Sep 4, 2020 – Oct 10, 2020 Networking

lore
Share & tools
lore
#0 lore raw

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
index 1aaad101b6..9ff366d44f 100644
@@ -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
Reviewed-by on v1 1/1
#1 lore raw
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: destroy g_hash_table in colo_rewriter_cleanup

Quoted 4 lines

s->connection_track_table forgot to destroy in colo_rewriter_cleanup. Fix it.

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..9ff366d44f 100644

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

Reviewed-by on v1 1/1
#2 lore raw
In reply to Pan Nengyuan
Quoted 5 lines · Pan Nengyuan <[email protected]> 于2020年9月4日周五 下午3:23写道:

s->connection_track_table forgot to destroy in colo_rewriter_cleanup. Fix it.

Quoted 21 lines
---
 net/filter-rewriter.c | 2 ++
 1 file changed, 2 insertions(+)
net/filter-rewriter.c +2 -1
index 1aaad101b6..9ff366d44f 100644
@@ -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

#3 lore raw

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_table forgot to destroy in colo_rewriter_cleanup. Fix it.

Quoted 21 lines
---
 net/filter-rewriter.c | 2 ++
 1 file changed, 2 insertions(+)
net/filter-rewriter.c +2 -1
index 1aaad101b6..9ff366d44f 100644
@@ -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

#4 lore raw

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: destroy g_hash_table in colo_rewriter_cleanup

ping!

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_table forgot to destroy in colo_rewriter_cleanup. Fix

it.

Quoted 10 lines
Quoted 3 lines
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..9ff366d44f 100644

net/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 -1
         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