From 7899df370a9395fe016f54a311e58487be04c66c Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Sat, 20 Jan 2007 20:42:27 +0000 Subject: Fix memory leaks --- sdpd/servicedb.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'sdpd/servicedb.c') 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; -- cgit