projects
/
platform
/
upstream
/
connman.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8c367a7
)
iptables: Free blob replacement after pushing it
author
Samuel Ortiz
<sameo@linux.intel.com>
Sat, 13 Nov 2010 23:07:37 +0000
(
00:07
+0100)
committer
Samuel Ortiz
<sameo@linux.intel.com>
Sat, 13 Nov 2010 23:07:37 +0000
(
00:07
+0100)
src/iptables.c
patch
|
blob
|
history
diff --git
a/src/iptables.c
b/src/iptables.c
index
3207058
..
3579c83
100644
(file)
--- 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)