mirror of git://git.sysmocom.de/ofono
gdbus: Fix not freeing list node by using g_slist_delete_link
g_slist_remove_link does not free the node which can cause leaks so replace that with g_slist_delete_link which does free memory properly.
This commit is contained in:
parent
19cb623390
commit
320096a7da
|
@ -574,7 +574,7 @@ static DBusHandlerResult message_filter(DBusConnection *connection,
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
remove_match(data);
|
remove_match(data);
|
||||||
listeners = g_slist_remove_link(listeners, l);
|
listeners = g_slist_delete_link(listeners, l);
|
||||||
|
|
||||||
filter_data_free(data);
|
filter_data_free(data);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue