Do you **really** need to free memory?
Theoretically, if your program is short lived and doesn't consume much heap memory to begin with, would it really be that bad to simply not keep track? It'll be reclaimed by the OS soon anyways, and you might see a minor amount of performance benefits, in addition to readability.
Asking for a friend of course...
Posted Feb 25, 2026, 5:50 AM UTC
156164