dmalloc reported 47 memory leaks in the correct program 'ok5.cc'. It always reports 47 leaks, so you can (probably) still tell whether your program has a leak by checking if dmalloc reports more than 47 memory leaks. 1064872362: 49: Dmalloc version '5.2.2' from 'http://dmalloc.com/' 1064872362: 49: flags = 0x4e40503, logfile 'logfile' 1064872362: 49: interval = 100, addr = 0, seen # = 0, limit = 0 1064872362: 49: starting time = 1064872362 1064872362: 49: process pid = 23290 1064872362: 49: Dumping Chunk Statistics: 1064872362: 49: basic-block 4096 bytes, alignment 8 bytes, heap grows up 1064872362: 49: heap address range: 0x80cc000 to 0x80df000, 77824 bytes 1064872362: 49: user blocks: 7 blocks, 26944 bytes (34%) 1064872362: 49: admin blocks: 12 blocks, 49152 bytes (63%) 1064872362: 49: external blocks: 0 blocks, 0 bytes (0%) 1064872362: 49: total blocks: 19 blocks, 77824 bytes 1064872362: 49: heap checked 0 1064872362: 49: alloc calls: malloc 13, calloc 0, realloc 0, free 1 1064872362: 49: alloc calls: recalloc 0, memalign 0, valloc 0 1064872362: 49: alloc calls: new 35, delete 0 1064872362: 49: current memory in use: 4112 bytes (47 pnts) 1064872362: 49: total memory allocated: 4196 bytes (48 pnts) 1064872362: 49: max in use at one time: 4196 bytes (48 pnts) 1064872362: 49: max alloced with 1 call: 1704 bytes 1064872362: 49: max unused memory space: 1772 bytes (29%) 1064872362: 49: top 10 allocations: 1064872362: 49: total-size count in-use-size count source 1064872362: 49: 3344 3 3344 3 ra=0x804d591 1064872362: 49: 208 1 208 1 ra=0x400854de 1064872362: 49: 84 1 0 0 ra=0x804aac9 1064872362: 49: 44 1 44 1 ra=0x4006c11a 1064872362: 49: 44 1 44 1 ra=0x4006c169 1064872362: 49: 40 1 40 1 ra=0x4006bd5f 1064872362: 49: 40 1 40 1 ra=0x4006bd10 1064872362: 49: 36 1 36 1 ra=0x4006776b 1064872362: 49: 36 3 36 3 ra=0x4008b654 1064872362: 49: 4196 48 4112 47 Total of 38 1064872362: 49: Dumping Not-Freed Pointers Changed Since Start: 1064872362: 49: not freed: '0x80cce08|s1' (28 bytes) from 'ra=0x4006c244' 1064872362: 49: not freed: '0x80cce48|s1' (44 bytes) from 'ra=0x4006c169' 1064872362: 49: not freed: '0x80cce88|s1' (44 bytes) from 'ra=0x4006c11a' 1064872362: 49: not freed: '0x80ccec8|s1' (24 bytes) from 'ra=0x4006be3a' 1064872362: 49: not freed: '0x80ccf08|s1' (40 bytes) from 'ra=0x4006bd5f' 1064872362: 49: not freed: '0x80ccf48|s1' (40 bytes) from 'ra=0x4006bd10' 1064872362: 49: not freed: '0x80ccf88|s1' (28 bytes) from 'ra=0x4006bc7d' 1064872362: 49: not freed: '0x80ccfc8|s1' (36 bytes) from 'ra=0x4006776b' 1064872362: 49: not freed: '0x80d3808|s1' (1000 bytes) from 'ra=0x804d591' 1064872362: 49: not freed: '0x80d3c08|s1' (640 bytes) from 'ra=0x804d591' 1064872362: 49: not freed: '0x80d4cc8|s1' (12 bytes) from 'ra=0x4008b654' 1064872362: 49: not freed: '0x80d4ce8|s1' (12 bytes) from 'ra=0x4008b654' 1064872362: 49: not freed: '0x80d4d08|s1' (12 bytes) from 'ra=0x4008b654' 1064872362: 49: not freed: '0x80d4d28|s1' (12 bytes) from 'ra=0x4008a4d4' 1064872362: 49: not freed: '0x80d4d48|s1' (12 bytes) from 'ra=0x4008a4d4' 1064872362: 49: not freed: '0x80d4d68|s1' (12 bytes) from 'ra=0x4008a4d4' 1064872362: 49: not freed: '0x80d4d88|s1' (8 bytes) from 'ra=0x4006c402' 1064872362: 49: not freed: '0x80d4da8|s1' (8 bytes) from 'ra=0x4006c3b8' 1064872362: 49: not freed: '0x80d4dc8|s1' (16 bytes) from 'ra=0x4006c360' 1064872362: 49: not freed: '0x80d4de8|s1' (8 bytes) from 'ra=0x4006c316' 1064872362: 49: not freed: '0x80d4e08|s1' (8 bytes) from 'ra=0x4006c2cc' 1064872362: 49: not freed: '0x80d4e28|s1' (8 bytes) from 'ra=0x4006c1fa' 1064872362: 49: not freed: '0x80d4e48|s1' (8 bytes) from 'ra=0x4006c1b0' 1064872362: 49: not freed: '0x80d4e68|s1' (8 bytes) from 'ra=0x4006c0d3' 1064872362: 49: not freed: '0x80d4e88|s1' (8 bytes) from 'ra=0x4006c08c' 1064872362: 49: not freed: '0x80d4ea8|s1' (8 bytes) from 'ra=0x4006c042' 1064872362: 49: not freed: '0x80d4ec8|s1' (8 bytes) from 'ra=0x4006bff8' 1064872362: 49: not freed: '0x80d4ee8|s1' (8 bytes) from 'ra=0x4006bfae' 1064872362: 49: not freed: '0x80d4f08|s1' (16 bytes) from 'ra=0x4006bf56' 1064872362: 49: not freed: '0x80d4f28|s1' (8 bytes) from 'ra=0x4006bf0c' 1064872362: 49: not freed: '0x80d4f48|s1' (8 bytes) from 'ra=0x4006bec2' 1064872362: 49: not freed: '0x80d4f68|s1' (8 bytes) from 'ra=0x4006bdf0' 1064872362: 49: not freed: '0x80d4f88|s1' (8 bytes) from 'ra=0x4006bda6' 1064872362: 49: not freed: '0x80d4fa8|s1' (8 bytes) from 'ra=0x4006bcc9' 1064872362: 49: not freed: '0x80d4fc8|s1' (8 bytes) from 'ra=0x4006bc33' 1064872362: 49: not freed: '0x80d4fe8|s1' (12 bytes) from 'ra=0x4006bb8d' 1064872362: 49: not freed: '0x80d5808|s1' (1704 bytes) from 'ra=0x804d591' 1064872362: 49: not freed: '0x80d6f08|s1' (208 bytes) from 'ra=0x400854de' 1064872362: 49: not freed: '0x80d9f78|s1' (4 bytes) from 'ra=0x4008b5d9' 1064872362: 49: not freed: '0x80d9f88|s1' (4 bytes) from 'ra=0x4008b5d9' 1064872362: 49: not freed: '0x80d9f98|s1' (4 bytes) from 'ra=0x4008b4fc' 1064872362: 49: not freed: '0x80d9fa8|s1' (4 bytes) from 'ra=0x4008b5d9' 1064872362: 49: not freed: '0x80d9fb8|s1' (1 bytes) from 'ra=0x4008a456' 1064872362: 49: not freed: '0x80d9fc8|s1' (1 bytes) from 'ra=0x4008a456' 1064872362: 49: not freed: '0x80d9fd8|s1' (1 bytes) from 'ra=0x4008a379' 1064872362: 49: not freed: '0x80d9fe8|s1' (1 bytes) from 'ra=0x4008a456' 1064872362: 49: not freed: '0x80d9ff8|s1' (4 bytes) from 'ra=0x400677cc' 1064872362: 49: total-size count source 1064872362: 49: 3344 3 ra=0x804d591 1064872362: 49: 208 1 ra=0x400854de 1064872362: 49: 44 1 ra=0x4006c11a 1064872362: 49: 44 1 ra=0x4006c169 1064872362: 49: 40 1 ra=0x4006bd5f 1064872362: 49: 40 1 ra=0x4006bd10 1064872362: 49: 36 3 ra=0x4008b654 1064872362: 49: 36 1 ra=0x4006776b 1064872362: 49: 36 3 ra=0x4008a4d4 1064872362: 49: 28 1 ra=0x4006c244 1064872362: 49: 28 1 ra=0x4006bc7d 1064872362: 49: 24 1 ra=0x4006be3a 1064872362: 49: 16 1 ra=0x4006c360 1064872362: 49: 16 1 ra=0x4006bf56 1064872362: 49: 12 1 ra=0x4006bb8d 1064872362: 49: 12 3 ra=0x4008b5d9 1064872362: 49: 8 1 ra=0x4006bdf0 1064872362: 49: 8 1 ra=0x4006c316 1064872362: 49: 8 1 ra=0x4006c08c 1064872362: 49: 8 1 ra=0x4006c3b8 1064872362: 49: 8 1 ra=0x4006c1b0 1064872362: 49: 8 1 ra=0x4006bda6 1064872362: 49: 8 1 ra=0x4006c2cc 1064872362: 49: 8 1 ra=0x4006c042 1064872362: 49: 8 1 ra=0x4006bec2 1064872362: 49: 8 1 ra=0x4006c1fa 1064872362: 49: 8 1 ra=0x4006bc33 1064872362: 49: 8 1 ra=0x4006bfae 1064872362: 49: 8 1 ra=0x4006bff8 1064872362: 49: 8 1 ra=0x4006bcc9 1064872362: 49: 8 1 ra=0x4006c402 1064872362: 49: 8 1 ra=0x4006c0d3 1064872362: 49: 8 1 ra=0x4006bf0c 1064872362: 49: 4 1 ra=0x4008b4fc 1064872362: 49: 4 1 ra=0x400677cc 1064872362: 49: 3 3 ra=0x4008a456 1064872362: 49: 1 1 ra=0x4008a379 1064872362: 49: 4112 47 Total of 37 1064872362: 49: ending time = 1064872362, elapsed since start = 0:00:00