From c0ad3efc18a615ce710450b4b66146c45873eb98 Mon Sep 17 00:00:00 2001 From: "Igor V. Kovalenko" Date: Fri, 22 Oct 2021 08:44:19 +0300 Subject: [PATCH] bluetooth: Release container with device UUID strings Stop leaking container with UUID strings when releasing adapter. Fixes: 4b55b8a9d ("bluetooth: Keep a list of local adapters' UUIDs") Part-of: --- src/modules/bluetooth/bluez5-util.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/modules/bluetooth/bluez5-util.c b/src/modules/bluetooth/bluez5-util.c index 5f941f03c..cd539a6b0 100644 --- a/src/modules/bluetooth/bluez5-util.c +++ b/src/modules/bluetooth/bluez5-util.c @@ -1491,6 +1491,7 @@ static void adapter_free(pa_bluetooth_adapter *a) { if (d->adapter == a) device_set_adapter(d, NULL); + pa_hashmap_free(a->uuids); pa_xfree(a->path); pa_xfree(a->address); pa_xfree(a);