mirror of
https://git.kernel.org/pub/scm/bluetooth/bluez.git
synced 2024-11-16 00:34:39 +08:00
mesh: Fix race condition memory leak
This is a minor fix of a memory leak triggered on process exit if proceess has been killed right after requesting an outbound advertisement be sent. It is harmless, but will cause an occasional static analysis failure.
This commit is contained in:
parent
9260107b15
commit
2058aadd76
@ -462,7 +462,9 @@ static bool dev_destroy(struct mesh_io *io)
|
||||
bt_hci_unref(pvt->hci);
|
||||
l_timeout_remove(pvt->tx_timeout);
|
||||
l_queue_destroy(pvt->rx_regs, l_free);
|
||||
l_queue_remove_if(pvt->tx_pkts, simple_match, pvt->tx);
|
||||
l_queue_destroy(pvt->tx_pkts, l_free);
|
||||
l_free(pvt->tx);
|
||||
l_free(pvt);
|
||||
io->pvt = NULL;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user