From 64929d6cee782b70dd68ac2f123cb45ada5bb30e Mon Sep 17 00:00:00 2001 From: jj683 Date: Thu, 24 Oct 2024 11:09:44 +0200 Subject: [PATCH] Add missed clear to unsafe_free_list_storage --- immer/heap/unsafe_free_list_heap.hpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/immer/heap/unsafe_free_list_heap.hpp b/immer/heap/unsafe_free_list_heap.hpp index 9b41dfcb..0e6467b5 100644 --- a/immer/heap/unsafe_free_list_heap.hpp +++ b/immer/heap/unsafe_free_list_heap.hpp @@ -24,6 +24,8 @@ struct unsafe_free_list_storage { free_list_node* data; std::size_t count; + + ~head_t() { Heap::clear(); } }; static head_t& head()