summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortaesub kim <taesub.kim@samsung.com>2016-03-09 06:28:37 (GMT)
committerGerrit Code Review <gerrit@review.vlan103.tizen.org>2016-03-09 06:28:37 (GMT)
commitc1cc873b8aa16affd668d8c1d8251f07f2989b34 (patch)
tree5bdf7be1cce57a4efed8624ea364ab440a7af701
parent0bc7a0d61791cd835f86d5e41eacb50276f80faf (diff)
parentd568b78e8040f49eb81a7b781bf6016a1ed568ac (diff)
downloadconnman-c1cc873b8aa16affd668d8c1d8251f07f2989b34.zip
connman-c1cc873b8aa16affd668d8c1d8251f07f2989b34.tar.gz
connman-c1cc873b8aa16affd668d8c1d8251f07f2989b34.tar.bz2
Merge "iptables: Fix memory leak" into tizen
-rwxr-xr-xsrc/iptables.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/iptables.c b/src/iptables.c
index 8d583ea..dd1b2e6 100755
--- a/src/iptables.c
+++ b/src/iptables.c
@@ -2364,8 +2364,10 @@ int __connman_iptables_iterate_chains(const char *table_name,
struct connman_iptables *table;
table = get_table(table_name);
- if (!table)
+ if (!table) {
+ g_free(cbd);
return -EINVAL;
+ }
iterate_entries(table->blob_entries->entrytable,
table->info->valid_hooks,