memory leak in finddeclarationtool
Original Reporter info from Mantis: Martin @martin_frb
-
Reporter name: Martin Friebe
Original Reporter info from Mantis: Martin @martin_frb
- Reporter name: Martin Friebe
Description:
tested on w32 vista
- Open the lazarus project itself.
- Open the file debugger/gdbmidebugger.pp
- Goto line 202 (inside declaration of TGDBMIDebuggerCommand)
procedure SetCommandState(NewState: TGDBMIDebuggerCommandState);
- Set caret on SetCommandState
- Choose "rename identifier" (popup menu)
- Rename to "SetCommandStateXXX"
- Close/Restart IDE (no need to save anything)
Get's the following leaks (stacktrace from rev 30812)
Heap dump by heaptrc unit
1105775 memory blocks allocated : 108750480/112029960
1105770 memory blocks freed : 108750300/112029760
5 unfreed memory blocks : 180
True heap size : 4718592 (224 used in System startup)
True free heap : 5092832
Should be : 4717848
Call trace for block $12725270 size 36
$00702518 line 8035 of finddeclarationtool.pas
$00702941 line 8215 of finddeclarationtool.pas
$006F4624 line 2638 of finddeclarationtool.pas
$006F384C line 3158 of finddeclarationtool.pas
$006FA546 line 5282 of finddeclarationtool.pas
$006FA48B line 5299 of finddeclarationtool.pas
$006F3B02 line 2931 of finddeclarationtool.pas
$006F398A line 3225 of finddeclarationtool.pas
Call trace for block $127253C0 size 36
$00702518 line 8035 of finddeclarationtool.pas
$00702941 line 8215 of finddeclarationtool.pas
$006F4624 line 2638 of finddeclarationtool.pas
$006F384C line 3158 of finddeclarationtool.pas
$006FA546 line 5282 of finddeclarationtool.pas
$006FA48B line 5299 of finddeclarationtool.pas
$006F3B02 line 2931 of finddeclarationtool.pas
$006F398A line 3225 of finddeclarationtool.pas
Call trace for block $12725350 size 36
$00702518 line 8035 of finddeclarationtool.pas
$00702941 line 8215 of finddeclarationtool.pas
$006F4624 line 2638 of finddeclarationtool.pas
$006F384C line 3158 of finddeclarationtool.pas
$006FA546 line 5282 of finddeclarationtool.pas
$006FA48B line 5299 of finddeclarationtool.pas
$006F3B02 line 2931 of finddeclarationtool.pas
$006F398A line 3225 of finddeclarationtool.pas
Call trace for block $127252E0 size 36
$00702518 line 8035 of finddeclarationtool.pas
$00702941 line 8215 of finddeclarationtool.pas
$006F4624 line 2638 of finddeclarationtool.pas
$006F384C line 3158 of finddeclarationtool.pas
$006FA546 line 5282 of finddeclarationtool.pas
$006FA48B line 5299 of finddeclarationtool.pas
$006F3B02 line 2931 of finddeclarationtool.pas
$006F398A line 3225 of finddeclarationtool.pas
Call trace for block $12724FD0 size 36
$00702518 line 8035 of finddeclarationtool.pas
$00702941 line 8215 of finddeclarationtool.pas
$006F4624 line 2638 of finddeclarationtool.pas
$006F384C line 3158 of finddeclarationtool.pas
$006FA546 line 5282 of finddeclarationtool.pas
$006FA48B line 5299 of finddeclarationtool.pas
$006F3B02 line 2931 of finddeclarationtool.pas
$006F398A line 3225 of finddeclarationtool.pas
Mantis conversion info:
- Mantis ID: 19391
- Version: 0.9.31 (SVN)