hello,
Hi Jurassic Pork. Thank you for your reply regarding this (particular) matter.
what is your O.S, Lazarus and fpc versions ?
OS is Raspbian (Debian buster derivative, 32-bit),
Lazarus version is in theory non-existent (i am using FPC command-line compiler) but I have 2.0, 2.0.8 as well as a trunk version installed.
FPC used for compilation is v3.2.0 (issue also shows itself with v3.0.4, although the exact trace might differ). I haven't tried v3.0 or v2.6.4 yet as these old versions (although installed) would work a bit counterproductive for me atm)
you can have a look here (fpc 3.0.4)
Thank you for the link.
Only that thread seems to discuss installing internettools by means of using Lazarus. I have no such intention
fwiw internettools works splendid for me and I am able to do all kind of neat things with it.
The snippet that I posted is the most basic example I was able to come up with that is able to show the issue.
I just seem unable to get rid of the memory leaks.
edit: my internettoolsconfig.inc looks like:
//Here you can choose which regex library to use
{$if not defined(USE_SOROKINS_REGEX) and not defined(USE_SOROKINS_DREGEX) and not defined(USE_FLRE) and not defined(USE_FLRE_WITH_CACHE)}
{.$DEFINE USE_SOROKINS_REGEX} //Sorokins' regex library included in FPC. It is quite reliable
//{$DEFINE USE_SOROKINS_DREGEX} //my copy of Sorokins' library, for older FPC versions that did not include it
//{$DEFINE USE_FLRE} //Bero's "Fast Light Regular Expressions" library. It is required for proper UTF-8 support in regex
{$DEFINE USE_FLRE_WITH_CACHE} //As above, but parse every regex only once
{$endif}
{$IFDEF USE_FLRE_WITH_CACHE}{$DEFINE USE_FLRE}{$ENDIF}
//internal flags
{$mode objfpc} {$H+}
{$modeswitch advancedrecords}