From: Luiz Augusto von Dentz <luiz.von.dentz@xxxxxxxxx> btd_device_connect_services should not reference the services given as pending list handling does not unreference them. --- src/device.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/device.c b/src/device.c index 6e6c9ee..d4360e6 100644 --- a/src/device.c +++ b/src/device.c @@ -1520,8 +1520,7 @@ int btd_device_connect_services(struct btd_device *dev, GSList *services) for (l = services; l; l = g_slist_next(l)) { struct btd_service *service = l->data; - dev->pending = g_slist_append(dev->pending, - btd_service_ref(service)); + dev->pending = g_slist_append(dev->pending, service); } return connect_next(dev); -- 2.1.0 -- To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html