Gettext memory leak
Original Reporter info from Mantis: FPCCore
-
Reporter name: FPC core team
Original Reporter info from Mantis: FPCCore
- Reporter name: FPC core team
Description:
Compile the example program with heap trace support (-gh) and run it:
/usr/share/doc/packages/fpc-1.9.8/examples/restest.pp
Result:
Heap dump by heaptrc unit
51 memory blocks allocated : 2112/2248
41 memory blocks freed : 1747/1864
10 unfreed memory blocks : 365
TMOFile.Destroy doesn't free memory correctly.
If you change all the freemem()'s by dispose()'s, you don't get any unfreed memory block. See little patch attached.
After apply the patch:
Heap dump by heaptrc unit
47 memory blocks allocated : 2040/2168
47 memory blocks freed : 2040/2168
0 unfreed memory blocks : 0
Additional information:
Reporter: Antonio Marti
EMail: windowze2000 at yahoo dot es
Mantis conversion info:
- Mantis ID: 5691
- OS: Linux
- Version: 1.9.8
- Fixed in version: 1.9.9