Memory Leak / Strange Behaviour (ZEOS)
Original Reporter info from Mantis: firmos
-
Reporter name: H. Hartl
Original Reporter info from Mantis: firmos
- Reporter name: H. Hartl
Description:
In running Zeos Library another memory leak is occurring.
(as opposed to FPC 2.0.2)
The behaviour is very strange.
To reproduce: Use FPC 2.1.1 Version 5191
compile with:
fpc -gl -gh zeos_memhole2.pas
Additional information:
Output is:
Heap dump by heaptrc unit
2 memory blocks allocated : 14/24
1 memory blocks freed : 4/8
1 unfreed memory blocks : 10
True heap size : 32768
True free heap : 32688
Should be : 32696
Call trace for block $009EB0A8 size 10
$0804DD2F NEWANSISTRING, line 64 of /opt/fpc_head/rtl/i386/math.inc
$080481F7 main, line 23 of zeos_memhole2.pas
Now uncomment Line //A or //B or //C (one line is sufficcient!)
Output is:
Heap dump by heaptrc unit
1 memory blocks allocated : 4/8
1 memory blocks freed : 4/8
0 unfreed memory blocks : 0
True heap size : 32768
True free heap : 32768
Mantis conversion info:
- Mantis ID: 7776
- Version: 2.2.0
- Fixed in version: 2.2.0