mirror of
https://github.com/bluekitchen/btstack.git
synced 2024-12-29 09:26:08 +00:00
btstack_tlv_posix: free entry on delete
This commit is contained in:
parent
c41b074a2c
commit
55846b97e4
@ -106,6 +106,7 @@ static void btstack_tlv_posix_delete_tag(void * context, uint32_t tag){
|
||||
tlv_entry_t * entry = (tlv_entry_t*) btstack_linked_list_iterator_next(&it);
|
||||
if (entry->tag != tag) continue;
|
||||
btstack_linked_list_iterator_remove(&it);
|
||||
free(entry);
|
||||
btstack_tlv_posix_append_tag(self, tag, NULL, 0);
|
||||
return;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user