1
0
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:
Bartosz Taudul 2020-08-12 01:30:22 +02:00
parent b1b7be0a46
commit 90ed18222a

View File

@ -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 )
{