btstack_tlv_posix: free entry on delete

This commit is contained in:
Matthias Ringwald 2019-08-16 22:31:43 +02:00
parent c41b074a2c
commit 55846b97e4

View File

@ -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;
}