We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aaa18c6 commit 0ccec28Copy full SHA for 0ccec28
tests/runtime_tests.cpp
@@ -36,6 +36,7 @@ void operator delete(void* p) noexcept
36
for (std::size_t i = 0; i < num_allocations; ++i) {
37
if (allocations[i] == p) {
38
std::swap(allocations[i], allocations[num_allocations-1]);
39
+ --num_allocations;
40
found = true;
41
break;
42
}
@@ -44,8 +45,6 @@ void operator delete(void* p) noexcept
44
45
if (!found) {
46
++double_delete;
47
-
48
- --num_allocations;
49
50
51
std::free(p);
0 commit comments