[Bug c++/66339] g++ 5.1.0 Generates memory leak

lh_mouse at 126 dot com gcc-bugzilla@gcc.gnu.org
Mon Jan 11 14:47:00 GMT 2016


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66339

--- Comment #4 from lh_mouse <lh_mouse at 126 dot com> ---
(In reply to Jonathan Wakely from comment #3)
> OK, whatever weird definition of leak you are using is irrelevant. The
> memory is still in use until the program exits, and there is still a pointer
> to it. It is not lost, or forgotten about, it is in use by the run-time.

That is an ostrich strategy.

The runtime is amenable for deallocation of the pool because it is the runtime
that has allocated the pool. The runtime shall free it, by definition, when it
is no longer 'in use by the run-time', but not never.


More information about the Gcc-bugs mailing list