From 55846b97e4c1b63efd427a68ffc6ec6e7076bf45 Mon Sep 17 00:00:00 2001 From: Matthias Ringwald Date: Fri, 16 Aug 2019 22:31:43 +0200 Subject: [PATCH] btstack_tlv_posix: free entry on delete --- platform/posix/btstack_tlv_posix.c | 1 + 1 file changed, 1 insertion(+) diff --git a/platform/posix/btstack_tlv_posix.c b/platform/posix/btstack_tlv_posix.c index 15176bf54..3e5f30c5f 100644 --- a/platform/posix/btstack_tlv_posix.c +++ b/platform/posix/btstack_tlv_posix.c @@ -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; }