From: Samuel Ortiz Date: Sat, 13 Nov 2010 23:07:37 +0000 (+0100) Subject: iptables: Free blob replacement after pushing it X-Git-Tag: accepted/2.0alpha-wayland/20121110.002834~2118 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8e20dc0ecf427258ee6a19b7adad8e9d24da3e64;p=profile%2Fivi%2Fconnman.git iptables: Free blob replacement after pushing it --- diff --git a/src/iptables.c b/src/iptables.c index 3207058..3579c83 100644 --- a/src/iptables.c +++ b/src/iptables.c @@ -1288,6 +1288,7 @@ int __connman_iptables_commit(const char *table_name) { struct connman_iptables *table; struct ipt_replace *repl; + int err; DBG("%s", table_name); @@ -1297,7 +1298,11 @@ int __connman_iptables_commit(const char *table_name) repl = iptables_blob(table); - return iptables_replace(table, repl); + err = iptables_replace(table, repl); + + g_free(repl); + + return err; } static void remove_table(gpointer user_data)