mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-10 02:31:48 +00:00
Free allocated memory in case of read failure.
This commit is contained in:
parent
d46ffb4e9f
commit
312713b83c
@ -3928,6 +3928,10 @@ void Profiler::HandleSourceCodeQuery( char* data, char* image, uint32_t id )
|
|||||||
TracyLfqCommit;
|
TracyLfqCommit;
|
||||||
ok = true;
|
ok = true;
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
tracy_free_fast( ptr );
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -3959,6 +3963,10 @@ void Profiler::HandleSourceCodeQuery( char* data, char* image, uint32_t id )
|
|||||||
TracyLfqCommit;
|
TracyLfqCommit;
|
||||||
ok = true;
|
ok = true;
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
tracy_free_fast( ptr );
|
||||||
|
}
|
||||||
}
|
}
|
||||||
close( d );
|
close( d );
|
||||||
}
|
}
|
||||||
@ -3985,6 +3993,10 @@ void Profiler::HandleSourceCodeQuery( char* data, char* image, uint32_t id )
|
|||||||
TracyLfqCommit;
|
TracyLfqCommit;
|
||||||
ok = true;
|
ok = true;
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
tracy_free_fast( ptr );
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user