From 97ee897bba8004f8b7986c55e5724cf45252d729 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Santiago=20Ospina=20De=20Los=20R=C3=ADos?= Date: Wed, 2 Oct 2024 13:35:20 +0200 Subject: [PATCH] Update memstats.cc --- memstats.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/memstats.cc b/memstats.cc index d2535fa..e5375e2 100644 --- a/memstats.cc +++ b/memstats.cc @@ -436,9 +436,9 @@ void *operator new(std::size_t sz, std::nothrow_t) noexcept // instrumentation of delete void operator delete(void *ptr) noexcept { - std::free(ptr); if (memstats_instrumentation) MemStatsInfo::record(ptr); + std::free(ptr); } // instrumentation of delete