summaryrefslogtreecommitdiff
path: root/gdbus
diff options
context:
space:
mode:
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2012-10-03 11:57:06 (GMT)
committerPatrik Flykt <patrik.flykt@linux.intel.com>2012-10-04 06:56:11 (GMT)
commit5eee13984f9f34c64c54b1567392ed7867b4312f (patch)
tree58da81cf6f51fd02dd9ae12c82fd62aa4f5a7307 /gdbus
parent297a1d9c92957c7cfb7a0275056cde5acd9924f8 (diff)
downloadconnman-5eee13984f9f34c64c54b1567392ed7867b4312f.zip
connman-5eee13984f9f34c64c54b1567392ed7867b4312f.tar.gz
connman-5eee13984f9f34c64c54b1567392ed7867b4312f.tar.bz2
gdbus: Fix not freeing list node by using g_slist_delete_link
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.
Diffstat (limited to 'gdbus')
-rw-r--r--gdbus/watch.c2
1 files changed, 1 insertions, 1 deletions
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);
}