Browse Source

heaptrc: empty the array for the call trace, otherwise the trace dump code will just dump the rest of the array as well, on systems where the heap is not initialized to zero, or if the memory area has been re-used

git-svn-id: trunk@40856 -
Károly Balogh 6 years ago
parent
commit
56f0a71466
1 changed files with 1 additions and 0 deletions
  1. 1 0
      rtl/inc/heaptrc.pp

+ 1 - 0
rtl/inc/heaptrc.pp

@@ -536,6 +536,7 @@ begin
   pp^.size:=size;
   pp^.size:=size;
   pp^.extra_info_size:=extra_info_size;
   pp^.extra_info_size:=extra_info_size;
   pp^.exact_info_size:=exact_info_size;
   pp^.exact_info_size:=exact_info_size;
+  fillchar(pp^.calls[1],sizeof(pp^.calls),#0);
   {
   {
     the end of the block contains:
     the end of the block contains:
     <tail>   4 bytes
     <tail>   4 bytes