mirror of
https://github.com/wolfpld/tracy.git
synced 2025-03-20 07:40:02 +08:00
Use proper allocator.
This commit is contained in:
parent
b1b7be0a46
commit
90ed18222a
@ -1078,7 +1078,7 @@ void SysTraceSendExternalName( uint64_t thread )
|
||||
{
|
||||
int pid = -1;
|
||||
size_t lsz = 1024;
|
||||
auto line = (char*)malloc( lsz );
|
||||
auto line = (char*)tracy_malloc( lsz );
|
||||
for(;;)
|
||||
{
|
||||
auto rd = getline( &line, &lsz, f );
|
||||
@ -1089,7 +1089,7 @@ void SysTraceSendExternalName( uint64_t thread )
|
||||
break;
|
||||
}
|
||||
}
|
||||
free( line );
|
||||
tracy_free( line );
|
||||
fclose( f );
|
||||
if( pid >= 0 )
|
||||
{
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user