mirror of git://git.sysmocom.de/ofono
gatchat: Fix memory leak with notify nodes list
The list itself needs to be freed as well and not only its elements.
This commit is contained in:
parent
f35f985235
commit
6d426a19a6
|
@ -151,6 +151,7 @@ static void at_notify_destroy(gpointer user_data)
|
||||||
struct at_notify *notify = user_data;
|
struct at_notify *notify = user_data;
|
||||||
|
|
||||||
g_slist_foreach(notify->nodes, at_notify_node_destroy, NULL);
|
g_slist_foreach(notify->nodes, at_notify_node_destroy, NULL);
|
||||||
|
g_slist_free(notify->nodes);
|
||||||
g_free(notify);
|
g_free(notify);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue