This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/25849] 8 byte memory leak using cerr with libpthread linked in
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 18 Jan 2006 21:30:01 -0000
- Subject: [Bug libstdc++/25849] 8 byte memory leak using cerr with libpthread linked in
- References: <bug-25849-12038@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #2 from pinskia at gcc dot gnu dot org 2006-01-18 21:30 -------
Also looking at the code:
void* v = std::malloc(sizeof(__cxa_eh_globals));
if (v == 0 || __gthread_setspecific(init._M_key, v) != 0)
std::terminate();
This is a false postive as we do free it in eh_globals_dtor.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25849