diff options
author | Leena Gunda <leena.gunda@wipro.com> | 2010-12-30 12:13:41 +0530 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2010-12-29 23:00:12 -0800 |
commit | bf33c6d46988ac775e5ae499baab136bacc33ce2 (patch) | |
tree | ea4a2d72a380a078b5bdf8afabccc9dc43db8e0c /src/iptables.c | |
parent | 5b262004dcdc2d88cb2dc668b00a657ca6b8361c (diff) | |
download | connman-bf33c6d46988ac775e5ae499baab136bacc33ce2.tar.gz connman-bf33c6d46988ac775e5ae499baab136bacc33ce2.tar.bz2 connman-bf33c6d46988ac775e5ae499baab136bacc33ce2.zip |
Fix memory leaks in iptables library
Fixes BMC#11830
Diffstat (limited to 'src/iptables.c')
-rw-r--r-- | src/iptables.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/iptables.c b/src/iptables.c index 6860fdd7..c799c255 100644 --- a/src/iptables.c +++ b/src/iptables.c @@ -902,6 +902,7 @@ static void table_cleanup(struct connman_iptables *table) entry = list->data; g_free(entry->entry); + g_free(entry); } g_list_free(table->entries); @@ -1300,6 +1301,7 @@ int __connman_iptables_commit(const char *table_name) err = iptables_replace(table, repl); + g_free(repl->counters); g_free(repl); if (err < 0) |