diff options
Diffstat (limited to 'sdpd/servicedb.c')
| -rw-r--r-- | sdpd/servicedb.c | 8 | 
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; | 
