From 6bce24212df1c7a11614c2dfcd8bdbdf45263baa Mon Sep 17 00:00:00 2001 From: Alex Deymo Date: Fri, 29 Mar 2013 14:19:43 -0700 Subject: [PATCH] core: Memory leak on device_free for eir_uuids field. The eir_uuids list is usually freed by device_svc_resolved, but that doesn't happen if the device is removed before a SDP browse ends. This fix deletes the eir_uuids list on device_free. --- src/device.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/device.c b/src/device.c index 1630082ed..ee17514fd 100644 --- a/src/device.c +++ b/src/device.c @@ -445,6 +445,9 @@ static void device_free(gpointer user_data) g_free(device->authr); } + if (device->eir_uuids) + g_slist_free_full(device->eir_uuids, g_free); + g_free(device->path); g_free(device->alias); g_free(device->modalias); -- 2.47.3