nat: Memory leak when cleaning up
authorJukka Rissanen <jukka.rissanen@linux.intel.com>
Thu, 11 Oct 2012 08:21:57 +0000 (11:21 +0300)
committerPatrik Flykt <patrik.flykt@linux.intel.com>
Fri, 12 Oct 2012 10:11:59 +0000 (13:11 +0300)
The nat struct was not freed when it is was removed from the hash.

src/nat.c

index e17a3f8..927d305 100644 (file)
--- 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 = {