diff options
author | Johan Hedberg <johan.hedberg@nokia.com> | 2006-03-09 20:45:35 +0000 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@nokia.com> | 2006-03-09 20:45:35 +0000 |
commit | 947aaeb981783700b4137e33550bd723bf600ef9 (patch) | |
tree | 5bcd371f818b08ed5c312a98fb88764c74fc8115 /hcid | |
parent | f58f88cfd50021c2f076c5d7ac28150ef549cb1f (diff) |
Fix memory leak in name exit functions
Diffstat (limited to 'hcid')
-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); } |