It seems there is a small memory leak in below commit of Indy on Raspberry Pi (Linux-ARM) systems.
commit c8220089c2509b707ca90f0d0a5d5893f213584b (grafted, HEAD -> master, origin/master, origin/HEAD)
Author: Remy Lebeau <remy@lebeausoftware.org>
Date: Wed Jun 24 10:13:47 2020 -0700
Leak happens just by including IdTCPServer in uses list. It is not necessary to create TIdTCPServer or any other object.
When I check IdTCPServer.pas I did not see any initialization section. Going a little deeper, leak maybe in one of the below files by first sight.
IdResourceStringsCore,
IdBaseComponent,
IdComponent,
IdContext,
IdGlobal,
IdException,
IdIntercept,
IdIOHandler,
IdIOHandlerStack,
IdReply,
IdScheduler,
IdSchedulerOfThread,
IdServerIOHandler,
IdServerIOHandlerStack,
IdSocketHandle,
IdStackConsts,
IdTCPConnection,
IdThread,
IdYarn,
IdGlobalCore,
IdResourceStringsCore,
IdReplyRFC,
IdSchedulerOfThreadDefault,
IdStack,
IdThreadSafe
I do not know design details of Indy and so I did not go deeper than above myself. It is possible leak is deep in somewhere else. If anybody has some knowledge about Indy design and have some time he/she is welcome to check it out.
Thanks & Regards,
Ertan