[Bug libstdc++/80658] Memory leak reported in libstdc++ (zerotier)
redi at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Mon May 8 15:23:00 GMT 2017
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80658
--- Comment #8 from Jonathan Wakely <redi at gcc dot gnu.org> ---
(In reply to Bernd Paysan from comment #0)
> The documentation of mt_allocator is at least somewhat misleading:
>
> https://gcc.gnu.org/onlinedocs/libstdc++/manual/mt_allocator_impl.html
>
> "Notes about deallocation. This allocator does not explicitly release
> memory."
>
> Well, it does add freed memory to its freelists and reuse it. It's just not
> giving back unused memory to the OS.
I've made a tweak to that text which should clarify things.
More information about the Gcc-bugs
mailing list