mirror of
https://github.com/wolfpld/tracy
synced 2025-04-28 20:23:51 +00:00
Fix memory leak.
This commit is contained in:
parent
c7d94a66b0
commit
1fff99ebb0
@ -242,6 +242,7 @@ bool SysTraceStart( int64_t& samplingPeriod )
|
||||
const auto controlStatus = ControlTrace( 0, KERNEL_LOGGER_NAME, s_prop, EVENT_TRACE_CONTROL_STOP );
|
||||
if( controlStatus != ERROR_SUCCESS && controlStatus != ERROR_WMI_INSTANCE_NOT_FOUND )
|
||||
{
|
||||
tracy_free( backup );
|
||||
tracy_free( s_prop );
|
||||
return false;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user