[fpc-pascal] Converting old pascal written for Pascal/MT+ compiler
jonas at freepascal.org
Tue Apr 4 22:04:06 CEST 2023
On 04/04/2023 16:14, Bart via fpc-pascal wrote:
> If your local "writeable constant" is of type string, and strings are
> longstrings, and the writeable const is assigned a value that is the
> result of a string concatenation, then you'll have a memory leak.
That does not matter in practice (*), since when the program terminates
all memory gets released to the OS anyway. And before that, the memory
would never be released, even if that bug got fixed.
(*) unless you are using heaptrc to hunt for other, non-benign memory
leaks, since then it will be a bit harder to identify those.
More information about the fpc-pascal