From 6d426a19a6e91444aafa9302e72e4d8f1510509d Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Fri, 6 May 2011 09:19:54 -0700 Subject: gatchat: Fix memory leak with notify nodes list The list itself needs to be freed as well and not only its elements. --- gatchat/gatchat.c | 1 + 1 file changed, 1 insertion(+) (limited to 'gatchat/gatchat.c') diff --git a/gatchat/gatchat.c b/gatchat/gatchat.c index 546bd687..1f1204db 100644 --- a/gatchat/gatchat.c +++ b/gatchat/gatchat.c @@ -151,6 +151,7 @@ static void at_notify_destroy(gpointer user_data) struct at_notify *notify = user_data; g_slist_foreach(notify->nodes, at_notify_node_destroy, NULL); + g_slist_free(notify->nodes); g_free(notify); } -- cgit v1.2.3