From: Jukka Rissanen Date: Thu, 11 Oct 2012 08:21:57 +0000 (+0300) Subject: nat: Memory leak when cleaning up X-Git-Tag: 1.9~48 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3f13d897e88d61f2e98ca4b9dff51336e4a4900b;p=platform%2Fupstream%2Fconnman.git nat: Memory leak when cleaning up The nat struct was not freed when it is was removed from the hash. --- diff --git a/src/nat.c b/src/nat.c index e17a3f8..927d305 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 = {