mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-04-15 23:42:52 +00:00
sdp: free service record item on sdp_unregister_service
This commit is contained in:
parent
7c979c61bf
commit
c0a6fc5d51
@ -14,6 +14,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
|
||||
|
||||
### Fixed
|
||||
- hci: fix buffer overrun in gap_inquiry_explode
|
||||
- sdp: free service record item on sdp_unregister_service
|
||||
|
||||
## Changes March 2018
|
||||
|
||||
|
@ -152,6 +152,7 @@ void sdp_unregister_service(uint32_t service_record_handle){
|
||||
service_record_item_t * record_item = sdp_get_record_item_for_handle(service_record_handle);
|
||||
if (!record_item) return;
|
||||
btstack_linked_list_remove(&sdp_service_records, (btstack_linked_item_t *) record_item);
|
||||
btstack_memory_service_record_item_free(record_item);
|
||||
}
|
||||
|
||||
// PDU
|
||||
|
Loading…
x
Reference in New Issue
Block a user