From: Lasse Dalegaard <dalegaard@gmail.com>
To: linux-bluetooth@vger.kernel.org
Cc: Lasse Dalegaard <dalegaard@gmail.com>
Subject: [PATCH BlueZ 2/2] device: fix memory leak
Date: Thu, 8 Jan 2026 11:01:36 +0100 [thread overview]
Message-ID: <20260108100136.486675-2-dalegaard@gmail.com> (raw)
In-Reply-To: <20260108100136.486675-1-dalegaard@gmail.com>
device_add_eir_uuids creates a list of added UUIDs, but it was never
freed.
---
src/device.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/device.c b/src/device.c
index c8aaf042f..0842becde 100644
--- a/src/device.c
+++ b/src/device.c
@@ -2453,6 +2453,7 @@ void device_add_eir_uuids(struct btd_device *dev, GSList *uuids)
}
device_probe_profiles(dev, added);
+ g_slist_free(added);
}
static void add_manufacturer_data(void *data, void *user_data)
--
2.52.0
next prev parent reply other threads:[~2026-01-08 10:01 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-01-08 10:01 [PATCH BlueZ 1/2] gatt-client: fix use-after-free Lasse Dalegaard
2026-01-08 10:01 ` Lasse Dalegaard [this message]
2026-01-08 15:27 ` [PATCH BlueZ 2/2] device: fix memory leak Luiz Augusto von Dentz
2026-01-08 18:50 ` Lasse Dalegaard
2026-01-08 19:08 ` Luiz Augusto von Dentz
2026-01-08 11:10 ` [BlueZ,1/2] gatt-client: fix use-after-free bluez.test.bot
2026-01-08 15:23 ` [PATCH BlueZ 1/2] " Luiz Augusto von Dentz
2026-01-08 18:46 ` Lasse Dalegaard
2026-01-08 19:06 ` Luiz Augusto von Dentz
2026-01-09 22:40 ` patchwork-bot+bluetooth
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260108100136.486675-2-dalegaard@gmail.com \
--to=dalegaard@gmail.com \
--cc=linux-bluetooth@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.