==4024== Memcheck, a memory error detector ==4024== Copyright (C) 2002-2012, and GNU GPL'd, by Julian Seward et al. ==4024== Using Valgrind-3.8.1 and LibVEX; rerun with -h for copyright info ==4024== Command: ./tutorial ==4024== Parent PID: 3832 ==4024== ==4024== ==4024== HEAP SUMMARY: ==4024== in use at exit: 3,320 bytes in 118 blocks ==4024== total heap usage: 750 allocs, 632 frees, 137,620 bytes allocated ==4024== ==4024== 40 bytes in 1 blocks are definitely lost in loss record 14 of 19 ==4024== at 0x4A075BC: operator new(unsigned long) (vg_replace_malloc.c:298) ==4024== by 0x47D36D: mongo::BackgroundJob::BackgroundJob(bool) (in /root/mongo-cxx-driver-v2.4/src/mongo/client/examples/tutorial) ==4024== by 0x4395FD: global constructors keyed to dbclient_rs.cpp (in /root/mongo-cxx-driver-v2.4/src/mongo/client/examples/tutorial) ==4024== by 0x4A7565: ??? (in /root/mongo-cxx-driver-v2.4/src/mongo/client/examples/tutorial) ==4024== by 0x41077A: ??? (in /root/mongo-cxx-driver-v2.4/src/mongo/client/examples/tutorial) ==4024== ==4024== 1,600 bytes in 100 blocks are definitely lost in loss record 19 of 19 ==4024== at 0x4A075BC: operator new(unsigned long) (vg_replace_malloc.c:298) ==4024== by 0x41AB98: mongo::DBConnectionPool::DBConnectionPool() (in /root/mongo-cxx-driver-v2.4/src/mongo/client/examples/tutorial) ==4024== by 0x412B56: main (tutorial.cpp:66) ==4024== ==4024== LEAK SUMMARY: ==4024== definitely lost: 1,640 bytes in 101 blocks ==4024== indirectly lost: 0 bytes in 0 blocks ==4024== possibly lost: 0 bytes in 0 blocks ==4024== still reachable: 1,680 bytes in 17 blocks ==4024== suppressed: 0 bytes in 0 blocks ==4024== Reachable blocks (those to which a pointer was found) are not shown. ==4024== To see them, rerun with: --leak-check=full --show-reachable=yes ==4024== ==4024== For counts of detected and suppressed errors, rerun with: -v ==4024== ERROR SUMMARY: 2 errors from 2 contexts (suppressed: 6 from 6)