From 9ea25be25f9e21d708fa0f539723839564f7b809 Mon Sep 17 00:00:00 2001 From: Stephen Seo Date: Fri, 22 Nov 2024 13:22:29 +0900 Subject: [PATCH] Revert "Minor refactoring of `free`" This reverts commit 411e81b6143d0530907f0a0475e1a2628af3d1af. --- src/another_memcheck_external.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/another_memcheck_external.cc b/src/another_memcheck_external.cc index 205d154..c756352 100644 --- a/src/another_memcheck_external.cc +++ b/src/another_memcheck_external.cc @@ -70,9 +70,9 @@ extern "C" { std::clog << "attempting to free"; } - // TODO maybe handle boolean result, but already prints warnings on error. - SC_AM_Internal::stats->do_free(ptr); - std::clog << std::endl; + if (!SC_AM_Internal::stats->do_free(ptr)) { + std::clog << std::endl; + } } }