Skip to content

Commit 3e17e78

Browse files
Fix freeing block on destroy #13
1 parent 5d3df2e commit 3e17e78

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

MemoryPool.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ CPPShift::Memory::MemoryPool::~MemoryPool() {
3535

3636
while (block_iterator != nullptr) {
3737
SMemoryBlockHeader* next_iterator = block_iterator->next;
38-
free(block_iterator);
38+
std::free(block_iterator);
3939
block_iterator = next_iterator;
4040
}
4141
}

0 commit comments

Comments
 (0)