[fpc-devel] Memory leak on BeginThread() when RTL compiled with -O2
NetSpirit
netspirit at meta.ua
Thu May 20 10:07:50 CEST 2021
Answer for my previous message
(https://lists.freepascal.org/pipermail/fpc-devel/2021-January/043512.html).
Memory leak happens when unit 'rtl\win32\sysinitpas.pp' compiled with
"-O2" or higher.
To eliminate this bug add "-O-" or "-OoNOREGVAR" to command-line when
compile this unit. This disables optimizations when enabled in 'fpc.cfg',
e.g:
%FPC_COMMAND% -O- -Mobjfpc win32\sysinitpas.pp
or
%FPC_COMMAND% -OoNOREGVAR -Mobjfpc win32\sysinitpas.pp
More information about the fpc-devel
mailing list