aboutsummaryrefslogtreecommitdiff
path: root/unit_tests/embedded_tests.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'unit_tests/embedded_tests.cpp')
-rw-r--r--unit_tests/embedded_tests.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/unit_tests/embedded_tests.cpp b/unit_tests/embedded_tests.cpp
index 470deab..d4794df 100644
--- a/unit_tests/embedded_tests.cpp
+++ b/unit_tests/embedded_tests.cpp
@@ -38,8 +38,8 @@ namespace
38 if (ptr) { 38 if (ptr) {
39 --sAllocCount; 39 --sAllocCount;
40 sAllocBytes -= osize; 40 sAllocBytes -= osize;
41 free(ptr);
42 sAllocs.erase(ptr); 41 sAllocs.erase(ptr);
42 free(ptr);
43 } 43 }
44 return nullptr; 44 return nullptr;
45 } else if (!ptr) // malloc 45 } else if (!ptr) // malloc