diff options
author | Johan Hedberg <johan.hedberg@nokia.com> | 2006-03-14 20:24:16 +0000 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@nokia.com> | 2006-03-14 20:24:16 +0000 |
commit | ea5e64d54ede784ed3517ecbf5520bd6cd0c4c6f (patch) | |
tree | 4953458ad8d4e427fdb9077842a5c553b07d6b5e | |
parent | 15553064885d4ff312ebc4fe2fe3e39e85f94ef2 (diff) |
Fix memory leak in name_listener_remove
-rw-r--r-- | hcid/dbus-common.c | 1 |
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) |