diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2007-01-20 20:49:45 +0000 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2007-01-20 20:49:45 +0000 |
commit | f8987b921efb679a03279e52328dee0a6dbdfe15 (patch) | |
tree | 20f49b232cb4513ce7ee524a0e924247938317cb /sdpd/servicedb.c | |
parent | 7899df370a9395fe016f54a311e58487be04c66c (diff) |
Remove double free action
Diffstat (limited to 'sdpd/servicedb.c')
-rw-r--r-- | sdpd/servicedb.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/sdpd/servicedb.c b/sdpd/servicedb.c index 8f5ff810..edf255ac 100644 --- a/sdpd/servicedb.c +++ b/sdpd/servicedb.c @@ -244,10 +244,8 @@ 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) { |