Memory Leaks Help (valgrind report)

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Soujiro
    New Member
    • Jan 2007
    • 35

    Memory Leaks Help (valgrind report)

    I have a binary that tells something about my binary, but it does't tell where in the source code.. could you tell what are its possible causes.

    Code:
    ==6224== 84,584 bytes in 28 blocks are still reachable in loss record 4 of 4
    ==6224==    at 0x401AA8B: operator new(unsigned) (vg_replace_malloc.c:163)
    ==6224==    by 0x40B40D0: std::__default_alloc_template<true, 0>::_S_chunk_alloc(unsigned, int&) (in /usr/lib/libstdc++.so.5.0.3)
    ==6224==    by 0x40B3FDC: std::__default_alloc_template<true, 0>::_S_refill(unsigned) (in /usr/lib/libstdc++.so.5.0.3)
    ==6224==    by 0x40B3B4B: std::__default_alloc_template<true, 0>::allocate(unsigned) (in /usr/lib/libstdc++.so.5.0.3)
    ==6224==    by 0x80509B7: std::_Deque_base<char*, std::allocator<char*> >::_M_initialize_map(unsigned) (stl_alloc.h:238)
    ==6224==    by 0x804F2BA: __static_initialization_and_destruction_0(int, int) (stl_deque.h:430)
    ==6224==    by 0x805085D: _GLOBAL__I_pv_configSettings_sp (locale_facets.h:107)
    ==6224==    by 0x8053674: (within /home/main/Bin/bin)
    ==6224==    by 0x8049530: (within /home/main/Bin/bin)
    ==6224==    by 0x80535E9: __libc_csu_init (in /home/main/Bin/bin)
    ==6224==    by 0x412F74A: (below main) (in /lib/tls/libc-2.3.2.so)
    Any suggestions the leak is so big though it is reachable.
  • Soujiro
    New Member
    • Jan 2007
    • 35

    #2
    What i mean is my binary when tested with valgrind gives these notes..

    Comment

    Working...