summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJukka Rissanen <jukka.rissanen@linux.intel.com>2012-10-11 11:21:57 +0300
committerPatrik Flykt <patrik.flykt@linux.intel.com>2012-10-12 13:11:59 +0300
commit3f13d897e88d61f2e98ca4b9dff51336e4a4900b (patch)
tree15afbcd6f53d810f832a23f9ce8976fa2a7e1bf9 /src
parent132bb54b219270304d3047eedb5d60b58d94db16 (diff)
downloadconnman-3f13d897e88d61f2e98ca4b9dff51336e4a4900b.tar.gz
connman-3f13d897e88d61f2e98ca4b9dff51336e4a4900b.tar.bz2
connman-3f13d897e88d61f2e98ca4b9dff51336e4a4900b.zip
nat: Memory leak when cleaning up
The nat struct was not freed when it is was removed from the hash.
Diffstat (limited to 'src')
-rw-r--r--src/nat.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/nat.c b/src/nat.c
index e17a3f88..927d3054 100644
--- a/src/nat.c
+++ b/src/nat.c
@@ -196,6 +196,7 @@ static void cleanup_nat(gpointer data)
g_free(nat->address);
g_free(nat->interface);
+ g_free(nat);
}
static struct connman_notifier nat_notifier = {