summaryrefslogtreecommitdiffstats
path: root/sdpd/servicedb.c
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2007-01-20 21:04:59 +0000
committerMarcel Holtmann <marcel@holtmann.org>2007-01-20 21:04:59 +0000
commitf64b45ffc0f9b1a0c202946c15ab35c681a7a3a2 (patch)
tree087cc9900cf78eab0d502c01de90a97e398a23af /sdpd/servicedb.c
parentf8987b921efb679a03279e52328dee0a6dbdfe15 (diff)
Don't forget to free the record when session terminates
Diffstat (limited to 'sdpd/servicedb.c')
-rw-r--r--sdpd/servicedb.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sdpd/servicedb.c b/sdpd/servicedb.c
index edf255ac..0eeb4060 100644
--- a/sdpd/servicedb.c
+++ b/sdpd/servicedb.c
@@ -113,6 +113,7 @@ void sdp_svcdb_collect_all(int sock)
if (item->sock == sock) {
sdp_list_t *next = p->next;
sdp_record_remove(item->record->handle);
+ sdp_record_free(item->record);
free(item);
if (q)
q->next = next;