g++ 12 unit test build fix. (#476)
test_random_allocation, g++ sees the removal from the list of the test case as UAF.
This commit is contained in:
@@ -134,8 +134,8 @@ void test_random_allocation()
|
||||
auto& cell = objects[index % count];
|
||||
if (cell != nullptr)
|
||||
{
|
||||
alloc.dealloc(cell);
|
||||
allocated.erase(cell);
|
||||
alloc.dealloc(cell);
|
||||
cell = nullptr;
|
||||
alloc_count--;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user