summaryrefslogtreecommitdiffstats
path: root/hcid
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@nokia.com>2006-03-09 20:45:35 +0000
committerJohan Hedberg <johan.hedberg@nokia.com>2006-03-09 20:45:35 +0000
commit947aaeb981783700b4137e33550bd723bf600ef9 (patch)
tree5bcd371f818b08ed5c312a98fb88764c74fc8115 /hcid
parentf58f88cfd50021c2f076c5d7ac28150ef549cb1f (diff)
Fix memory leak in name exit functions
Diffstat (limited to 'hcid')
-rw-r--r--hcid/dbus-common.c5
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);
}