From: Anderson Lizardo <anderson.lizardo@xxxxxxxxxxxxx> There is a code path in btd_event_device_found() where the EIR name is not used. This requires freeing eir_data.name to avoid a leak. --- src/event.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/src/event.c b/src/event.c index 3603643..22f4f72 100644 --- a/src/event.c +++ b/src/event.c @@ -527,6 +527,7 @@ void btd_event_device_found(bdaddr_t *local, bdaddr_t *peer, uint32_t class, /* if found: don't send the name again */ dev = adapter_search_found_devices(adapter, &match); if (dev) { + g_free(eir_data.name); adapter_update_found_devices(adapter, peer, rssi, class, NULL, NULL, dev->legacy, eir_data.services, -- 1.7.0.4 -- 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