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:
Barnabás Pőcze 2025-11-03 23:22:36 +01:00 committed by Wim Taymans
parent 78b6df769b
commit 3413ca9617

View file

@ -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;