summaryrefslogtreecommitdiffstats
path: root/gatchat
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2011-05-06 09:19:54 -0700
committerMarcel Holtmann <marcel@holtmann.org>2011-05-06 09:19:54 -0700
commit6d426a19a6e91444aafa9302e72e4d8f1510509d (patch)
treed6be6ccb340d59288a46466f5b15c0703311a475 /gatchat
parentf35f985235c41752dc5a477caf9a79969a4c55a6 (diff)
downloadofono-6d426a19a6e91444aafa9302e72e4d8f1510509d.tar.bz2
gatchat: Fix memory leak with notify nodes list
The list itself needs to be freed as well and not only its elements.
Diffstat (limited to 'gatchat')
-rw-r--r--gatchat/gatchat.c1
1 files changed, 1 insertions, 0 deletions
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);
}