mirror of
https://git.kernel.org/pub/scm/bluetooth/bluez.git
synced 2024-11-26 05:34:23 +08:00
Make use of g_slist_free_full on hciops plugin
This commit is contained in:
parent
da608774df
commit
634f0a0436
@ -2236,14 +2236,9 @@ static void stop_hci_dev(int index)
|
|||||||
|
|
||||||
hci_close_dev(dev->sk);
|
hci_close_dev(dev->sk);
|
||||||
|
|
||||||
g_slist_foreach(dev->keys, (GFunc) g_free, NULL);
|
g_slist_free_full(dev->keys, g_free);
|
||||||
g_slist_free(dev->keys);
|
g_slist_free_full(dev->uuids, g_free);
|
||||||
|
g_slist_free_full(dev->connections, g_free);
|
||||||
g_slist_foreach(dev->uuids, (GFunc) g_free, NULL);
|
|
||||||
g_slist_free(dev->uuids);
|
|
||||||
|
|
||||||
g_slist_foreach(dev->connections, (GFunc) conn_free, NULL);
|
|
||||||
g_slist_free(dev->connections);
|
|
||||||
|
|
||||||
init_dev_info(index, -1, dev->registered, dev->already_up);
|
init_dev_info(index, -1, dev->registered, dev->already_up);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user