summaryrefslogtreecommitdiffstats
path: root/hcid/dbus-common.c
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@nokia.com>2006-03-14 20:24:16 +0000
committerJohan Hedberg <johan.hedberg@nokia.com>2006-03-14 20:24:16 +0000
commitea5e64d54ede784ed3517ecbf5520bd6cd0c4c6f (patch)
tree4953458ad8d4e427fdb9077842a5c553b07d6b5e /hcid/dbus-common.c
parent15553064885d4ff312ebc4fe2fe3e39e85f94ef2 (diff)
Fix memory leak in name_listener_remove
Diffstat (limited to 'hcid/dbus-common.c')
-rw-r--r--hcid/dbus-common.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/hcid/dbus-common.c b/hcid/dbus-common.c
index 74e4ecda..d6299934 100644
--- a/hcid/dbus-common.c
+++ b/hcid/dbus-common.c
@@ -261,6 +261,7 @@ int name_listener_remove(DBusConnection *connection, const char *name,
}
data->callbacks = slist_remove(data->callbacks, cb);
+ free(cb);
/* Don't remove the filter if other callbacks exist */
if (data->callbacks)