Management operators produce memleaks in special cases
Original Reporter info from Mantis: MageSlayer @MageSlayer
-
Reporter name: Denis Golovan
Original Reporter info from Mantis: MageSlayer @MageSlayer
- Reporter name: Denis Golovan
Description:
Hi all
See attached project for details.
Sorry for being rather large, but it seems some minor details influence code generation.
Compiling it with heaptrc unit under 3.3.1 rev.48167 results in following callstacks on exit:
================assign0 r.rc 0
================assign0 r.rc 2
Heap dump by heaptrc unit of "./project1"
41 memory blocks allocated : 4821/4840
39 memory blocks freed : 4789/4808
2 unfreed memory blocks : 32
True heap size : 425984
True free heap : 425504
Should be : 425568
Call trace for block $00007FFFF7FBE3A0 size 0
$0000000000454E96 NEW_VECTOR, line 216 of uAST.pas
$0000000000455071 VEC_FROM_ITER$1$CRC3FCD8CEA, line 229 of uAST.pas
$0000000000454FBE NEW_LIST, line 222 of uAST.pas
$0000000000455209 ASTNEWLIST4, line 249 of uAST.pas
$000000000045508F TESTUNIT, line 261 of uAST.pas
$000000000040117E main, line 16 of project1.lpr
Call trace for block $00007FFFF7FC7200 size 32
$0000000000454E96 NEW_VECTOR, line 216 of uAST.pas
$0000000000455071 VEC_FROM_ITER$1$CRC3FCD8CEA, line 229 of uAST.pas
$0000000000454FBE NEW_LIST, line 222 of uAST.pas
$0000000000455209 ASTNEWLIST4, line 249 of uAST.pas
$000000000045508F TESTUNIT, line 261 of uAST.pas
$000000000040117E main, line 16 of project1.lpr
Mantis conversion info:
- Mantis ID: 38990
- Version: 3.3.1