diff options
Diffstat (limited to 'hcid/dbus-service.c')
-rw-r--r-- | hcid/dbus-service.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/hcid/dbus-service.c b/hcid/dbus-service.c index 7ce06a7c..57cc8cb8 100644 --- a/hcid/dbus-service.c +++ b/hcid/dbus-service.c @@ -446,8 +446,9 @@ int unregister_service_agent(DBusConnection *conn, const char *sender, const cha l = slist_find(services, path, (cmp_func_t) strcmp); if (l) { + void *p = l->data; services = slist_remove(services, l->data); - free(l->data); + free(p); } return 0; |