From 07c574160cdef67ea90fe32636eb6f3fbff0d644 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Barnab=C3=A1s=20P=C5=91cze?= Date: Sun, 30 Jul 2023 21:42:49 +0200 Subject: [PATCH] spa: bluez: backend-hsphfpd: actually free endpoint Previously, `endpoint_free()` did not free the `struct hsphfpd_endpoint` object itself, only its contents. Fix that. --- spa/plugins/bluez5/backend-hsphfpd.c | 1 + 1 file changed, 1 insertion(+) diff --git a/spa/plugins/bluez5/backend-hsphfpd.c b/spa/plugins/bluez5/backend-hsphfpd.c index 19ae2e41e..cb5ac870a 100644 --- a/spa/plugins/bluez5/backend-hsphfpd.c +++ b/spa/plugins/bluez5/backend-hsphfpd.c @@ -172,6 +172,7 @@ static void endpoint_free(struct hsphfpd_endpoint *endpoint) free(endpoint->path); free(endpoint->local_address); free(endpoint->remote_address); + free(endpoint); } static bool hsphfpd_cmp_transport_path(struct spa_bt_transport *t, const void *data)