This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libstdc++/80658] Memory leak reported in libstdc++ (zerotier)


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.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]