From 00e7aa5a3440dcfb1778109600ee0613a030ebeb Mon Sep 17 00:00:00 2001 From: Florian Forster Date: Tue, 8 May 2007 23:06:20 +0200 Subject: [PATCH] iptables plugin: Fix a segfault in the shutdown code. That's the problem with macros: `for (...) sfree (ptr);' doesn't work. --- src/iptables.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/iptables.c b/src/iptables.c index 5f2745f2..c48199ad 100644 --- a/src/iptables.c +++ b/src/iptables.c @@ -335,7 +335,9 @@ static int iptables_shutdown (void) int i; for (i = 0; i < chain_num; i++) + { sfree (chain_list[i]); + } sfree (chain_list); return (0); -- 2.30.2