==30502== Memcheck, a memory error detector. ==30502== Copyright (C) 2002-2008, and GNU GPL'd, by Julian Seward et al. ==30502== Using LibVEX rev 1884, a library for dynamic binary translation. ==30502== Copyright (C) 2004-2008, and GNU GPL'd, by OpenWorks LLP. ==30502== Using valgrind-3.4.1, a dynamic binary instrumentation framework. ==30502== Copyright (C) 2000-2008, and GNU GPL'd, by Julian Seward et al. ==30502== For more details, rerun with: -v ==30502== ==30502== My PID = 30502, parent PID = 29532. Prog and args are: ==30502== ./a.out ==30502== ==30502== ==30502== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 6 from 2) ==30502== malloc/free: in use at exit: 1,595 bytes in 27 blocks. ==30502== malloc/free: 47 allocs, 20 frees, 4,182 bytes allocated. ==30502== For counts of detected errors, rerun with: -v ==30502== searching for pointers to 27 not-freed blocks. ==30502== checked 166,176 bytes. ==30502== ==30502== 40 bytes in 1 blocks are still reachable in loss record 1 of 7 ==30502== at 0x4C246AC: operator new(unsigned long) (vg_replace_malloc.c:230) ==30502== by 0x40FD58: std::locale::locale > > >(std::locale const&, boost::date_time::time_facet > >*) (locale_classes.tcc:50) ==30502== by 0x4115CC: std::basic_ostream >& boost::posix_time::operator<< >(std::basic_ostream >&, boost::posix_time::ptime const&) (posix_time_io.hpp:60) ==30502== by 0x402DC7: main (memory_leak.cpp:10) ==30502== ==30502== ==30502== 96 bytes in 1 blocks are still reachable in loss record 2 of 7 ==30502== at 0x4C23F6C: operator new[](unsigned long) (vg_replace_malloc.c:274) ==30502== by 0x4E8F753: std::locale::_Impl::_Impl(std::locale::_Impl const&, unsigned long) (in /usr/lib64/gcc/x86_64-pc-linux-gnu/4.3.4/libstdc++.so.6.0.10) ==30502== by 0x40FD71: std::locale::locale > > >(std::locale const&, boost::date_time::time_facet > >*) (locale_classes.tcc:50) ==30502== by 0x4115CC: std::basic_ostream >& boost::posix_time::operator<< >(std::basic_ostream >&, boost::posix_time::ptime const&) (posix_time_io.hpp:60) ==30502== by 0x402DC7: main (memory_leak.cpp:10) ==30502== ==30502== ==30502== 96 bytes in 2 blocks are still reachable in loss record 3 of 7 ==30502== at 0x4C246AC: operator new(unsigned long) (vg_replace_malloc.c:230) ==30502== by 0x40A5C2: __gnu_cxx::new_allocator::allocate(unsigned long, void const*) (new_allocator.h:92) ==30502== by 0x40A5F1: std::_Vector_base >::_M_allocate(unsigned long) (stl_vector.h:144) ==30502== by 0x40A636: std::_Vector_base >::_Vector_base(unsigned long, std::allocator const&) (stl_vector.h:117) ==30502== by 0x40A6D0: std::vector >::vector(std::vector > const&) (stl_vector.h:248) ==30502== by 0x40A760: boost::date_time::date_generator_formatter > >::date_generator_formatter(boost::date_time::date_generator_formatter > > const&) (date_generator_formatter.hpp:38) ==30502== by 0x40E9E0: boost::date_time::date_facet > >::date_facet(char const*, boost::date_time::period_formatter > >, boost::date_time::special_values_formatter > >, boost::date_time::date_generator_formatter > >, unsigned long) (date_facet.hpp:111) ==30502== by 0x40F605: boost::date_time::time_facet > >::time_facet(unsigned long) (time_facet.hpp:203) ==30502== by 0x411588: std::basic_ostream >& boost::posix_time::operator<< >(std::basic_ostream >&, boost::posix_time::ptime const&) (posix_time_io.hpp:59) ==30502== by 0x402DC7: main (memory_leak.cpp:10) ==30502== ==30502== ==30502== 232 bytes in 1 blocks are still reachable in loss record 4 of 7 ==30502== at 0x4C246AC: operator new(unsigned long) (vg_replace_malloc.c:230) ==30502== by 0x411570: std::basic_ostream >& boost::posix_time::operator<< >(std::basic_ostream >&, boost::posix_time::ptime const&) (posix_time_io.hpp:59) ==30502== by 0x402DC7: main (memory_leak.cpp:10) ==30502== ==30502== ==30502== 256 bytes in 1 blocks are still reachable in loss record 5 of 7 ==30502== at 0x4C23F6C: operator new[](unsigned long) (vg_replace_malloc.c:274) ==30502== by 0x4E8F2D3: std::locale::_Impl::_M_install_facet(std::locale::id const*, std::locale::facet const*) (in /usr/lib64/gcc/x86_64-pc-linux-gnu/4.3.4/libstdc++.so.6.0.10) ==30502== by 0x40FD91: std::locale::locale > > >(std::locale const&, boost::date_time::time_facet > >*) (locale_classes.tcc:53) ==30502== by 0x4115CC: std::basic_ostream >& boost::posix_time::operator<< >(std::basic_ostream >&, boost::posix_time::ptime const&) (posix_time_io.hpp:60) ==30502== by 0x402DC7: main (memory_leak.cpp:10) ==30502== ==30502== ==30502== 256 bytes in 1 blocks are still reachable in loss record 6 of 7 ==30502== at 0x4C23F6C: operator new[](unsigned long) (vg_replace_malloc.c:274) ==30502== by 0x4E8F27C: std::locale::_Impl::_M_install_facet(std::locale::id const*, std::locale::facet const*) (in /usr/lib64/gcc/x86_64-pc-linux-gnu/4.3.4/libstdc++.so.6.0.10) ==30502== by 0x40FD91: std::locale::locale > > >(std::locale const&, boost::date_time::time_facet > >*) (locale_classes.tcc:53) ==30502== by 0x4115CC: std::basic_ostream >& boost::posix_time::operator<< >(std::basic_ostream >&, boost::posix_time::ptime const&) (posix_time_io.hpp:60) ==30502== by 0x402DC7: main (memory_leak.cpp:10) ==30502== ==30502== ==30502== 619 bytes in 20 blocks are possibly lost in loss record 7 of 7 ==30502== at 0x4C246AC: operator new(unsigned long) (vg_replace_malloc.c:230) ==30502== by 0x4ECBD00: std::string::_Rep::_S_create(unsigned long, unsigned long, std::allocator const&) (in /usr/lib64/gcc/x86_64-pc-linux-gnu/4.3.4/libstdc++.so.6.0.10) ==30502== by 0x4ECC694: (within /usr/lib64/gcc/x86_64-pc-linux-gnu/4.3.4/libstdc++.so.6.0.10) ==30502== by 0x4ECC7D2: std::basic_string, std::allocator >::basic_string(char const*, std::allocator const&) (in /usr/lib64/gcc/x86_64-pc-linux-gnu/4.3.4/libstdc++.so.6.0.10) ==30502== by 0x40AB76: boost::date_time::date_generator_formatter > >::date_generator_formatter() (date_generator_formatter.hpp:66) ==30502== by 0x40F5AD: boost::date_time::time_facet > >::time_facet(unsigned long) (time_facet.hpp:203) ==30502== by 0x411588: std::basic_ostream >& boost::posix_time::operator<< >(std::basic_ostream >&, boost::posix_time::ptime const&) (posix_time_io.hpp:59) ==30502== by 0x402DC7: main (memory_leak.cpp:10) ==30502== ==30502== LEAK SUMMARY: ==30502== definitely lost: 0 bytes in 0 blocks. ==30502== possibly lost: 619 bytes in 20 blocks. ==30502== still reachable: 976 bytes in 7 blocks. ==30502== suppressed: 0 bytes in 0 blocks.