From 3413ca9617e395014272024d244fb60e7ed0384b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Barnab=C3=A1s=20P=C5=91cze?= Date: Mon, 3 Nov 2025 23:22:36 +0100 Subject: [PATCH] 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: 5e0b63b1495591 ("bluez5: backend-native: use quirks + usb adapter caps for checking msbc") --- spa/plugins/bluez5/backend-native.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spa/plugins/bluez5/backend-native.c b/spa/plugins/bluez5/backend-native.c index 0dbe8c9ae..503607ca1 100644 --- a/spa/plugins/bluez5/backend-native.c +++ b/spa/plugins/bluez5/backend-native.c @@ -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;