Possible memory leak , incorect heap size reported on exit
Original Reporter info from Mantis: forest
-
Reporter name: Boguslaw Brandys
Original Reporter info from Mantis: forest
- Reporter name: Boguslaw Brandys
Description:
Compiling empty program code with such parameters (with heaptrc included) gives a difference of heap in heaptrc output.
Steps to reproduce:
Program :
program test;
begin
end.
compiled with :
fpc -MDelphi -Scgi -O1 -gl -gh -vewnhi -l -Fu. test.pas
Result :
D:\test\4>fpc -MDelphi -Scgi -O1 -gl -gh -vewnhi -l -Fu. test.pas
Hint: Start of reading config file d:\FPC\2.3.2\bin\i386-Win32\fpc.cfg
Hint: End of reading config file d:\FPC\2.3.2\bin\i386-Win32\fpc.cfg
Free Pascal Compiler version 2.3.1 [2009/05/06] for i386
Copyright (c) 1993-2009 by Florian Klaempfl
Target OS: Win32 for i386
Compiling test.pas
Linking test.exe
6 lines compiled, 0.4 sec , 45040 bytes code, 2968 bytes data
2 hint(s) issued
D:\test\4>test
Heap dump by heaptrc unit
0 memory blocks allocated : 0/0
0 memory blocks freed : 0/0
0 unfreed memory blocks : 0
True heap size : 65536 (80 used in System startup)
True free heap : 65456
Should be : 65376
D:\test\4>
Mantis conversion info:
- Mantis ID: 13678
- OS: windows xp home
- OS Build: 32-bit
- Build: fpc svn trunk from 2009/05/06
- Platform: windows
- Version: 2.3.1
- Fixed in version: 2.4.0
- Fixed in revision: 13124 (#9ed40aa9)