projects
/
platform
/
upstream
/
neard.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
60d1aac
)
gdbus: Fix not freeing list node by using g_slist_delete_link
author
Luiz Augusto von Dentz
<luiz.von.dentz@intel.com>
Wed, 3 Oct 2012 11:57:06 +0000
(14:57 +0300)
committer
Marcel Holtmann
<marcel@holtmann.org>
Mon, 26 Nov 2012 13:48:38 +0000
(14:48 +0100)
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
patch
|
blob
|
history
diff --git
a/gdbus/watch.c
b/gdbus/watch.c
index
a402ca9
..
07feb61
100644
(file)
--- 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_
remov
e_link(listeners, l);
+ listeners = g_slist_
delet
e_link(listeners, l);
filter_data_free(data);
}