summaryrefslogtreecommitdiff
path: root/src/util/profiler.h
diff options
context:
space:
mode:
authoraura <nw@moneybot.cc>2026-03-11 00:41:44 +0100
committeraura <nw@moneybot.cc>2026-03-11 00:41:44 +0100
commit4c0ab7a739085a32688f34947c0b1812a31d92d7 (patch)
tree3b32fa706a61438160433c51585c8d3a70a5ab88 /src/util/profiler.h
parentd1233da64ae31a381fd484b446e87c2c55ed02b8 (diff)
fix mem leaks, string convenience funcs
Diffstat (limited to 'src/util/profiler.h')
-rw-r--r--src/util/profiler.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/util/profiler.h b/src/util/profiler.h
index c8eea24..7caac96 100644
--- a/src/util/profiler.h
+++ b/src/util/profiler.h
@@ -66,10 +66,8 @@ inline void __profiler_intern_new_frame( PROFILER_LIST_ENTRY* entry ) {
return pe->hash == entry->hash;
} );
- if( i != -1 ) {
- __profiler_intern_clear_frame( &gprof.frames.data[i] );
+ if( i != -1 )
gprof.frames.erase( i );
- }
PROFILER_LIST_ENTRY* pne = gprof.frames.push( ne );
for( auto& it : pne->children ) {