Skip to content

Commit

Permalink
Add missed clear to unsafe_free_list_storage
Browse files Browse the repository at this point in the history
  • Loading branch information
jj683 committed Oct 24, 2024
1 parent df6ef46 commit 64929d6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions immer/heap/unsafe_free_list_heap.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 64929d6

Please sign in to comment.