summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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)