When I run Valgrind on my code, I get several thousand instances of
12 bytes in 1 blocks are possibly lost in loss record 545 of 29,459
at 0x7FCC050: operator new(unsigned int) (vg_replace_malloc.c:214)
by 0x87E39B1: __gnu_cxx::new_allocator<T>::allocate(unsigned int, void const*) (new_allocator.h:89)
...
...
From various posts I was able to determine that this is "not a bug, but a feature" since it is the way that gnu libraries provide highly efficient allocation to the stl. That said, seeing several thousand of these make it hard to find true bugs.
How can I set up Valgrind to not show these errors?
Note: I have tried setting environmental variables GLIBCXX_FORCE_NEW G_SLICE=always-malloc G_DEBUG=gc-friendly,resident-modules
and nothing changed