Comment: | Free the bdb databases before exiting the program, this fixes the
following problem reported by valgrind:
==8746== 8,380 bytes in 2 blocks are definitely lost in loss record 2 of 3
==8746== at 0x4A1B858: malloc (vg_replace_malloc.c:149)
==8746== by 0x4BDC95B: __os_malloc (in /usr/lib/libdb-4.3.so)
==8746== by 0x4BB0F18: __db_shalloc (in /usr/lib/libdb-4.3.so)
==8746== by 0x4BD35E8: __memp_alloc (in /usr/lib/libdb-4.3.so)
==8746== by 0x4BD4AE0: __memp_fget (in /usr/lib/libdb-4.3.so)
==8746== by 0x4B48103: __bam_read_root (in /usr/lib/libdb-4.3.so)
==8746== by 0x4BA901A: __db_open (in /usr/lib/libdb-4.3.so)
==8746== by 0x4BA3A7D: __db_open_pp (in /usr/lib/libdb-4.3.so)
==8746== by 0x40150F: initEmptyDB (collector.c:170)
==8746== by 0x401124: main (collector.c:84) |