diff options
author | Claudio Takahasi <claudio.takahasi@openbossa.org> | 2006-10-27 11:04:55 +0000 |
---|---|---|
committer | Claudio Takahasi <claudio.takahasi@openbossa.org> | 2006-10-27 11:04:55 +0000 |
commit | 5e38061721d1119e128574c4363e45c4902b8367 (patch) | |
tree | 4ac7057c16272a9417972607429b6877984bd2e4 /hcid/dbus-service.c | |
parent | 33e842c4e9690832c373886fbf1167a1c61fa84e (diff) |
Fixed segmentation fault when unregistering the service agent
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; |