Skip to content

Commit

Permalink
Update memstats.cc
Browse files Browse the repository at this point in the history
  • Loading branch information
SoilRos authored Oct 2, 2024
1 parent 622fbdf commit 97ee897
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion memstats.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 97ee897

Please sign in to comment.