ATTRIBUTES memory leaks in tests
Original Reporter info from Mantis: Thaddy
-
Reporter name: Thaddy de Koning
Original Reporter info from Mantis: Thaddy
- Reporter name: Thaddy de Koning
Description:
test tcustomattr13.pp leaks memory
I suspect multiple attribute tests suffer the same issue
See also forum https://forum.lazarus.freepascal.org/index.php/topic,47111.0.html
Steps to reproduce:
Compile tcustomattr13.pp with -glh
Outputs:
fpc -glh tcustomattr13.pp
Free Pascal Compiler version 3.3.1-r43218-sysutils-patch [2019/10/18] for arm
Copyright (c) 1993-2019 by Florian Klaempfl and others
Target OS: Linux for ARMHF
Compiling tcustomattr13.pp
Linking tcustomattr13
188 lines compiled, 2.9 sec
asta@thaddyginaasta:~ $ ./tcustomattr13
3
CheckAttr1
137438953500.00003.1416
Heap dump by heaptrc unit of /home/asta/tcustomattr13
23 memory blocks allocated : 5614/5648
21 memory blocks freed : 1494/1528
2 unfreed memory blocks : 4120
True heap size : 425984
True free heap : 421648
Should be : 421672
Call trace for block $76EE33E0 size 4096
Call trace for block $76EC3680 size 24
Additional information:
A simple example I added on the forum does not leak, but I suppose that is by accident.
In the test suite, similar tests also probably fail
Mantis conversion info:
- Mantis ID: 36196
- OS: all
- OS Build: all
- Build: 43225
- Platform: all
- Version: 3.3.1
- Fixed in version: 3.3.1
- Fixed in revision: 43299 (#9dcd897c)