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:
ea830d1
)
iptables: Free xtables entry when removing one entry from the table
author
Daniel Wagner
<daniel.wagner@bmw-carit.de>
Thu, 21 Feb 2013 16:42:28 +0000
(17:42 +0100)
committer
Patrik Flykt
<patrik.flykt@linux.intel.com>
Fri, 22 Feb 2013 10:42:44 +0000
(12:42 +0200)
src/iptables.c
patch
|
blob
|
history
diff --git
a/src/iptables.c
b/src/iptables.c
index
8fa3687
..
7376792
100644
(file)
--- a/
src/iptables.c
+++ b/
src/iptables.c
@@
-485,10
+485,11
@@
static int remove_table_entry(struct connman_iptables *table,
table->size -= entry->entry->next_offset;
removed = entry->entry->next_offset;
- g_free(entry->entry);
-
table->entries = g_list_remove(table->entries, entry);
+ g_free(entry->entry);
+ g_free(entry);
+
return removed;
}