C++ Logo

std-proposals

Advanced search

Re: [std-proposals] Deliberate memory leak

From: Jeremy Rifkin <rifkin.jer_at_[hidden]>
Date: Sat, 12 Oct 2024 09:51:36 -0500
How about using a preprocessor define to clean up the allocations properly
when using memory tooling or even just in debug in general while letting it
leak in release.

Jeremy

On Fri, Oct 11, 2024 at 12:15 Hyman Rosen via Std-Proposals <
std-proposals_at_[hidden]> wrote:

> 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.
> --
> Std-Proposals mailing list
> Std-Proposals_at_[hidden]
> https://lists.isocpp.org/mailman/listinfo.cgi/std-proposals
>

Received on 2024-10-12 14:51:50