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.


Jonas

(*) unless you are using heaptrc to hunt for other, non-benign memory leaks, since then it will be a bit harder to identify those.
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Reply via email to