summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 71172f6)
raw | patch | inline | side by side (parent: 71172f6)
author | Florian Forster <octo@leeloo.lan.home.verplant.org> | |
Tue, 8 May 2007 21:06:20 +0000 (23:06 +0200) | ||
committer | Florian Forster <octo@leeloo.lan.home.verplant.org> | |
Tue, 8 May 2007 21:06:20 +0000 (23:06 +0200) |
That's the problem with macros: `for (...) sfree (ptr);' doesn't work.
src/iptables.c | patch | blob | history |
diff --git a/src/iptables.c b/src/iptables.c
index 5f2745f281d65b0325f9e547d8f6e002a03b886c..c48199ad26c7d7059b105160e695e36b4b71d2ea 100644 (file)
--- a/src/iptables.c
+++ b/src/iptables.c
int i;
for (i = 0; i < chain_num; i++)
+ {
sfree (chain_list[i]);
+ }
sfree (chain_list);
return (0);