From: Luiz Augusto von Dentz <luiz.von.de...@intel.com>

g_slist_remove_link does not free the node which can cause leaks so
replace that with g_slist_delete_link which does free memory properly.
---
 gdbus/watch.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gdbus/watch.c b/gdbus/watch.c
index a402ca9..07feb61 100644
--- a/gdbus/watch.c
+++ b/gdbus/watch.c
@@ -574,7 +574,7 @@ static DBusHandlerResult message_filter(DBusConnection 
*connection,
                        continue;
 
                remove_match(data);
-               listeners = g_slist_remove_link(listeners, l);
+               listeners = g_slist_delete_link(listeners, l);
 
                filter_data_free(data);
        }
-- 
1.7.12.3

_______________________________________________
connman mailing list
connman@connman.net
http://lists.connman.net/listinfo/connman

Reply via email to