mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-14 10:20:21 +02:00
* heaptrc should not rely on the original SysAllocMem calling the heaptrace memory manager's functions
git-svn-id: trunk@42796 -
This commit is contained in:
parent
c97ffc6658
commit
f88a98e976
@ -1291,7 +1291,9 @@ end;
|
||||
|
||||
function TraceAllocMem(size:ptruint):Pointer;
|
||||
begin
|
||||
TraceAllocMem:=SysAllocMem(size);
|
||||
TraceAllocMem := TraceGetMem(size);
|
||||
if Assigned(TraceAllocMem) then
|
||||
FillChar(TraceAllocMem^, TraceMemSize(TraceAllocMem), 0);
|
||||
end;
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user