summaryrefslogtreecommitdiffstats
path: root/sdpd/servicedb.c
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2007-01-20 20:42:27 +0000
committerMarcel Holtmann <marcel@holtmann.org>2007-01-20 20:42:27 +0000
commit7899df370a9395fe016f54a311e58487be04c66c (patch)
treebc928f0d20213fc4daa6d89a8d4e0d819b4233b4 /sdpd/servicedb.c
parenteeb436f3b83e749dd9d7ae1c123765188155aa9c (diff)
Fix memory leaks
Diffstat (limited to 'sdpd/servicedb.c')
-rw-r--r--sdpd/servicedb.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/sdpd/servicedb.c b/sdpd/servicedb.c
index decc2e65..8f5ff810 100644
--- a/sdpd/servicedb.c
+++ b/sdpd/servicedb.c
@@ -244,14 +244,18 @@ int sdp_record_remove(uint32_t handle)
}
r = (sdp_record_t *) p->data;
- if (r)
+ if (r) {
service_db = sdp_list_remove(service_db, r);
+ sdp_record_free(r);
+ }
p = access_locate(handle);
if (p) {
a = (sdp_access_t *) p->data;
- if (a)
+ if (a) {
access_db = sdp_list_remove(access_db, a);
+ access_free(a);
+ }
}
return 0;