This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/80658] Memory leak reported in libstdc++ (zerotier)
- From: "redi at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 08 May 2017 15:11:42 +0000
- Subject: [Bug libstdc++/80658] Memory leak reported in libstdc++ (zerotier)
- Auto-submitted: auto-generated
- References: <bug-80658-4@http.gcc.gnu.org/bugzilla/>
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.