C++ Logo

std-proposals

Advanced search

Re: [std-proposals] Deliberate memory leak

From: Hyman Rosen <hyrosen_at_[hidden]>
Date: Fri, 11 Oct 2024 13:15:01 -0400
>
> Why not deallocate it in main in the end in that case? I honestly think
> that you should always free your resources.
>
Because deallocation takes time and is useless at the end of the program.
It's annoying when you ask an interactive program to exit and it sits there
durdling for a while before going away.

Received on 2024-10-11 17:15:15