Revert "Minor refactoring of free"

This reverts commit 411e81b614.
This commit is contained in:
Stephen Seo 2024-11-22 13:22:29 +09:00
parent cf21c26bbb
commit 9ea25be25f

View file

@ -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;
}
}
}