It seems to me that Jedi Code Formatter has memory leaks that occur when there are syntax errors in the code to be formatted. I attach a demo program that allows to reproduce them. I think this issue has some relevance since JCF component is shipped with Lazarus and available from IDE.