From ccb8aa4a8130cd575830e5b3a594108b661206cd Mon Sep 17 00:00:00 2001 From: Luiz Augusto von Dentz Date: Tue, 6 Jan 2015 13:42:14 -0200 Subject: [PATCH] core/device: Fix memory leak --- src/device.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/device.c b/src/device.c index 0abed9b06..e22f92d70 100644 --- a/src/device.c +++ b/src/device.c @@ -2768,6 +2768,7 @@ static void gatt_service_removed(struct gatt_db_attribute *attr, if (!g_slist_find_custom(device->primaries, prim->uuid, prim_uuid_cmp)) { + g_free(l->data); device->uuids = g_slist_delete_link(device->uuids, l); g_dbus_emit_property_changed(dbus_conn, device->path, DEVICE_INTERFACE, "UUIDs"); -- 2.47.3