Prechádzať zdrojové kódy

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 rokov pred
rodič
commit
56f0a71466
1 zmenil súbory, kde vykonal 1 pridanie a 0 odobranie
  1. 1 0
      rtl/inc/heaptrc.pp

+ 1 - 0
rtl/inc/heaptrc.pp

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