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++/27931] valgrind reports memleak when std::ios:sync_with_stdio(false)



------- Comment #5 from pcarlini at suse dot de  2006-06-08 00:54 -------
This behavior started with this patch:

  http://gcc.gnu.org/ml/libstdc++/2003-04/msg00427.html

when Pétur pointed out that, according to 27.3, p2, the standard streams are
*never* destroyed.

The ""leak"" appears only with sync_with_stdio(false) simply because the
synced, default, buffer doesn't do any dynamic memory allocation.


-- 

pcarlini at suse dot de changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |INVALID


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27931


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