From 9ee6a41491f2cfeccd9d60409598c903c657269c Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Fri, 10 Apr 2009 01:12:12 +0200 Subject: bluetooth: memory leak, actually free discovery struct itself --- src/modules/bluetooth/bluetooth-util.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') diff --git a/src/modules/bluetooth/bluetooth-util.c b/src/modules/bluetooth/bluetooth-util.c index 6e4344f7..5c7681d4 100644 --- a/src/modules/bluetooth/bluetooth-util.c +++ b/src/modules/bluetooth/bluetooth-util.c @@ -773,6 +773,8 @@ void pa_bluetooth_discovery_unref(pa_bluetooth_discovery *y) { if (y->core) pa_shared_remove(y->core, "bluetooth-discovery"); + + pa_xfree(y); } void pa_bluetooth_discovery_sync(pa_bluetooth_discovery *y) { -- cgit