summaryrefslogtreecommitdiffstats
path: root/hcid
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2007-01-16 09:53:30 +0000
committerMarcel Holtmann <marcel@holtmann.org>2007-01-16 09:53:30 +0000
commitd25a07673af6e6320baa7380eca777533b67c1ef (patch)
tree94c8693621f50a59cdb214d7d68f57e0a57f0216 /hcid
parent948ac2e8d4550d0300f8c890413634ff847b8703 (diff)
Free identifier when releasing service
Diffstat (limited to 'hcid')
-rw-r--r--hcid/dbus-service.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/hcid/dbus-service.c b/hcid/dbus-service.c
index 4c1c488c..5a6d8199 100644
--- a/hcid/dbus-service.c
+++ b/hcid/dbus-service.c
@@ -143,6 +143,9 @@ static void service_free(struct service *service)
if (service->descr)
free(service->descr);
+ if (service->ident)
+ free(service->ident);
+
if (service->trusted_devices) {
g_slist_foreach(service->trusted_devices, (GFunc) free, NULL);
g_slist_free(service->trusted_devices);