==3631== Memcheck, a memory error detector ==3631== Copyright (C) 2002-2012, and GNU GPL'd, by Julian Seward et al. ==3631== Using Valgrind-3.8.1 and LibVEX; rerun with -h for copyright info ==3631== Command: ./test_mg_db 128 ==3631== Parent PID: 3620 ==3631== ==3631== ==3631== HEAP SUMMARY: ==3631== in use at exit: 3,320 bytes in 118 blocks ==3631== total heap usage: 929 allocs, 811 frees, 189,172 bytes allocated ==3631== ==3631== 40 bytes in 1 blocks are definitely lost in loss record 14 of 19 ==3631== at 0x4A075BC: operator new(unsigned long) (vg_replace_malloc.c:298) ==3631== by 0x48AF1D: mongo::BackgroundJob::BackgroundJob(bool) (in /root/search/MTSearch/dba/test_mg_db) ==3631== by 0x447CFD: global constructors keyed to dbclient_rs.cpp (in /root/search/MTSearch/dba/test_mg_db) ==3631== by 0x4AE495: ??? (in /root/search/MTSearch/dba/test_mg_db) ==3631== by 0x4108EA: ??? (in /root/search/MTSearch/dba/test_mg_db) ==3631== ==3631== 1,600 bytes in 100 blocks are definitely lost in loss record 19 of 19 ==3631== at 0x4A075BC: operator new(unsigned long) (vg_replace_malloc.c:298) ==3631== by 0x4287C8: mongo::DBConnectionPool::DBConnectionPool() (in /root/search/MTSearch/dba/test_mg_db) ==3631== by 0x411C16: main (test_mg_db.cc:51) ==3631== ==3631== LEAK SUMMARY: ==3631== definitely lost: 1,640 bytes in 101 blocks ==3631== indirectly lost: 0 bytes in 0 blocks ==3631== possibly lost: 0 bytes in 0 blocks ==3631== still reachable: 1,680 bytes in 17 blocks ==3631== suppressed: 0 bytes in 0 blocks ==3631== Reachable blocks (those to which a pointer was found) are not shown. ==3631== To see them, rerun with: --leak-check=full --show-reachable=yes ==3631== ==3631== For counts of detected and suppressed errors, rerun with: -v ==3631== ERROR SUMMARY: 2 errors from 2 contexts (suppressed: 6 from 6)