mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-01-01 00:28:18 +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);
|
tlv_entry_t * entry = (tlv_entry_t*) btstack_linked_list_iterator_next(&it);
|
||||||
if (entry->tag != tag) continue;
|
if (entry->tag != tag) continue;
|
||||||
btstack_linked_list_iterator_remove(&it);
|
btstack_linked_list_iterator_remove(&it);
|
||||||
|
free(entry);
|
||||||
btstack_tlv_posix_append_tag(self, tag, NULL, 0);
|
btstack_tlv_posix_append_tag(self, tag, NULL, 0);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user