diff options
Diffstat (limited to 'hcid/dbus-common.c')
-rw-r--r-- | hcid/dbus-common.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/hcid/dbus-common.c b/hcid/dbus-common.c index e89f6e2a..c4e1cbf8 100644 --- a/hcid/dbus-common.c +++ b/hcid/dbus-common.c @@ -117,6 +117,11 @@ static int name_data_add(const char *name, name_cb_t func, void *user_data) static void name_data_free(struct name_data *data) { + struct slist *l; + + for (l = data->callbacks; l != NULL; l = l->next) + free(l->data); + free(data->name); free(data); } |