|
Boost Users : |
From: Seweryn Habdank-Wojewódzki (shw_at_[hidden])
Date: 2007-05-29 11:31:54
Hi!
> If you want to try to confirm it as a leak - change your cout references
> to a [non-static] stream you declare directly in your program scope (not
> cout, cerr, clog). You should then either see the "possible" move to
> "leaked" or go away entirely.
OK. if I've used ofstream there is NO leaks at all. However my logger have no
leaks even if I am using cerr, cout.
Thanks a lot for explanation of this facts.
Best regards.
==27629== Memcheck, a memory error detector.
==27629== Copyright (C) 2002-2007, and GNU GPL'd, by Julian Seward et al.
==27629== Using LibVEX rev 1732, a library for dynamic binary translation.
==27629== Copyright (C) 2004-2007, and GNU GPL'd, by OpenWorks LLP.
==27629== Using valgrind-3.2.3, a dynamic binary instrumentation framework.
==27629== Copyright (C) 2000-2007, and GNU GPL'd, by Julian Seward et al.
==27629== For more details, rerun with: -v
==27629==
==27629==
==27629== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 7 from 1)
==27629== malloc/free: in use at exit: 0 bytes in 0 blocks.
==27629== malloc/free: 8 allocs, 8 frees, 8,870 bytes allocated.
==27629== For counts of detected errors, rerun with: -v
==27629== All heap blocks were freed -- no leaks are possible.
-- |\/\/| Seweryn Habdank-Wojewódzki \/\/
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net