2 valgrind output will go to log
4 x bytes in 1 blocks are definitely lost in loss record ... of ...
5 by 0x........: doit() (leak_cpp_interior.cpp:119)
6 by 0x........: main (leak_cpp_interior.cpp:134)
9 definitely lost: x bytes in 1 blocks
10 indirectly lost: 0 bytes in 0 blocks
11 possibly lost: 0 bytes in 0 blocks
12 still reachable: x bytes in 7 blocks
13 of which reachable via heuristic:
14 length64 : x bytes in 1 blocks
15 newarray : x bytes in 1 blocks
16 multipleinheritance: x bytes in 2 blocks
17 Reachable blocks (those to which a pointer was found) are not shown.
18 To see them, rerun with: --leak-check=full --show-leak-kinds=all
20 leak_check summary heuristics multipleinheritance
22 definitely lost: x (+0) bytes in 1 (+0) blocks
23 indirectly lost: 0 (+0) bytes in 0 (+0) blocks
24 possibly lost: x (+x) bytes in 2 (+2) blocks
25 still reachable: x (-x) bytes in 5 (-2) blocks
26 of which reachable via heuristic:
27 length64 : 0 (-x) bytes in 0 (-1) blocks
28 newarray : 0 (-x) bytes in 0 (-1) blocks
29 multipleinheritance: x (+0) bytes in 2 (+0) blocks
30 To see details of leaked memory, give 'full' arg to leak_check
32 leak_check summary any heuristics newarray
34 definitely lost: x (+0) bytes in 1 (+0) blocks
35 indirectly lost: 0 (+0) bytes in 0 (+0) blocks
36 possibly lost: x (-x) bytes in 3 (+1) blocks
37 still reachable: x (+x) bytes in 4 (-1) blocks
38 of which reachable via heuristic:
39 newarray : x (+x) bytes in 1 (+1) blocks
40 multipleinheritance: 0 (-x) bytes in 0 (-2) blocks
41 To see details of leaked memory, give 'full' arg to leak_check
43 leak_check summary heuristics length64
45 definitely lost: x (+0) bytes in 1 (+0) blocks
46 indirectly lost: 0 (+0) bytes in 0 (+0) blocks
47 possibly lost: x (-x) bytes in 3 (+0) blocks
48 still reachable: x (+x) bytes in 4 (+0) blocks
49 of which reachable via heuristic:
50 length64 : x (+x) bytes in 1 (+1) blocks
51 newarray : 0 (-x) bytes in 0 (-1) blocks
52 To see details of leaked memory, give 'full' arg to leak_check
54 leak_check summary heuristics stdstring
56 definitely lost: x (+0) bytes in 1 (+0) blocks
57 indirectly lost: 0 (+0) bytes in 0 (+0) blocks
58 possibly lost: x (+x) bytes in 4 (+1) blocks
59 still reachable: x (-x) bytes in 3 (-1) blocks
60 of which reachable via heuristic:
61 length64 : 0 (-x) bytes in 0 (-1) blocks
62 To see details of leaked memory, give 'full' arg to leak_check
64 leak_check summary heuristics multipleinheritance,newarray,stdstring,length64
66 definitely lost: x (+0) bytes in 1 (+0) blocks
67 indirectly lost: 0 (+0) bytes in 0 (+0) blocks
68 possibly lost: 0 (-x) bytes in 0 (-4) blocks
69 still reachable: x (+x) bytes in 7 (+4) blocks
70 of which reachable via heuristic:
71 length64 : x (+x) bytes in 1 (+1) blocks
72 newarray : x (+x) bytes in 1 (+1) blocks
73 multipleinheritance: x (+x) bytes in 2 (+2) blocks
74 To see details of leaked memory, give 'full' arg to leak_check
76 leak_check summary heuristics all
78 definitely lost: x (+0) bytes in 1 (+0) blocks
79 indirectly lost: 0 (+0) bytes in 0 (+0) blocks
80 possibly lost: 0 (+0) bytes in 0 (+0) blocks
81 still reachable: x (+0) bytes in 7 (+0) blocks
82 of which reachable via heuristic:
83 length64 : x (+0) bytes in 1 (+0) blocks
84 newarray : x (+0) bytes in 1 (+0) blocks
85 multipleinheritance: x (+0) bytes in 2 (+0) blocks
86 To see details of leaked memory, give 'full' arg to leak_check
88 leak_check summary heuristics none
90 definitely lost: x (+0) bytes in 1 (+0) blocks
91 indirectly lost: 0 (+0) bytes in 0 (+0) blocks
92 possibly lost: x (+x) bytes in 4 (+4) blocks
93 still reachable: x (-x) bytes in 3 (-4) blocks
94 of which reachable via heuristic:
95 length64 : 0 (-x) bytes in 0 (-1) blocks
96 newarray : 0 (-x) bytes in 0 (-1) blocks
97 multipleinheritance: 0 (-x) bytes in 0 (-2) blocks
98 To see details of leaked memory, give 'full' arg to leak_check
100 Searching for pointers pointing in x bytes from 0x........
101 *0x........ interior points at x bytes inside 0x........
102 Address 0x........ is 0 bytes inside data symbol "ptr"
103 block at 0x........ considered reachable by ptr 0x........ using newarray heuristic
104 Searching for pointers pointing in x bytes from 0x........
105 *0x........ interior points at x bytes inside 0x........
106 Address 0x........ is 0 bytes inside data symbol "ptr"
107 block at 0x........ considered reachable by ptr 0x........ using newarray heuristic
126 in use at exit: 0 bytes in 0 blocks
128 All heap blocks were freed -- no leaks are possible
130 For lists of detected and suppressed errors, rerun with: -s
131 ERROR SUMMARY: 1 errors from 1 contexts (suppressed: 0 from 0)