Open / Close connection causes memory consumption. Špproximately on 20 iterations resident program memory increases by 4 KB. No memory leaks after program close.
I took this issue to the FPC bug tracker, but their resolution is "nothing can do on FPC side".
Please find all necessity tests on
http://bugs.freepascal.org/view.php?id=30794