Skip to content

Commit

Permalink
Fix freeing block on destroy #13
Browse files Browse the repository at this point in the history
  • Loading branch information
LessComplexity committed Dec 20, 2021
1 parent 5d3df2e commit 3e17e78
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion MemoryPool.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ CPPShift::Memory::MemoryPool::~MemoryPool() {

while (block_iterator != nullptr) {
SMemoryBlockHeader* next_iterator = block_iterator->next;
free(block_iterator);
std::free(block_iterator);
block_iterator = next_iterator;
}
}
Expand Down

0 comments on commit 3e17e78

Please sign in to comment.