mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-16 07:00:00 -05:00
spa: bluez: backend-native: fix libusb device leak
`libusb_free_device_list()` should be passed `true` as its second
argument to unreference every single device in the list.
Fixes: 5e0b63b149 ("bluez5: backend-native: use quirks + usb adapter caps for checking msbc")
This commit is contained in:
parent
78b6df769b
commit
3413ca9617
1 changed files with 1 additions and 1 deletions
|
|
@ -852,7 +852,7 @@ done:
|
|||
if (cfg)
|
||||
libusb_free_config_descriptor(cfg);
|
||||
if (devices)
|
||||
libusb_free_device_list(devices, 0);
|
||||
libusb_free_device_list(devices, true);
|
||||
if (ctx)
|
||||
libusb_exit(ctx);
|
||||
return ok;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue