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 8 blocks
13 of which reachable via heuristic:
14 stdstring : x bytes in 2 blocks
15 length64 : x bytes in 1 blocks
16 newarray : x bytes in 1 blocks
17 multipleinheritance: x bytes in 2 blocks
18 Reachable blocks (those to which a pointer was found) are not shown.
19 To see them, rerun with: --leak-check=full --show-leak-kinds=all
21 leak_check summary heuristics multipleinheritance
23 definitely lost: x (+0) bytes in 1 (+0) blocks
24 indirectly lost: 0 (+0) bytes in 0 (+0) blocks
25 possibly lost: x (+x) bytes in 4 (+4) blocks
26 still reachable: x (-x) bytes in 4 (-4) blocks
27 of which reachable via heuristic:
28 stdstring : 0 (-x) bytes in 0 (-2) blocks
29 length64 : 0 (-x) bytes in 0 (-1) blocks
30 newarray : 0 (-x) bytes in 0 (-1) blocks
31 multipleinheritance: x (+0) bytes in 2 (+0) blocks
32 To see details of leaked memory, give 'full' arg to leak_check
34 leak_check summary any heuristics newarray
36 definitely lost: x (+0) bytes in 1 (+0) blocks
37 indirectly lost: 0 (+0) bytes in 0 (+0) blocks
38 possibly lost: x (-x) bytes in 4 (+0) blocks
39 still reachable: x (+x) bytes in 4 (+0) blocks
40 of which reachable via heuristic:
41 newarray : x (+x) bytes in 2 (+2) blocks
42 multipleinheritance: 0 (-x) bytes in 0 (-2) blocks
43 To see details of leaked memory, give 'full' arg to leak_check
45 leak_check summary heuristics length64
47 definitely lost: x (+0) bytes in 1 (+0) blocks
48 indirectly lost: 0 (+0) bytes in 0 (+0) blocks
49 possibly lost: x (+x) bytes in 5 (+1) blocks
50 still reachable: x (-x) bytes in 3 (-1) blocks
51 of which reachable via heuristic:
52 length64 : x (+x) bytes in 1 (+1) blocks
53 newarray : 0 (-x) bytes in 0 (-2) blocks
54 To see details of leaked memory, give 'full' arg to leak_check
56 leak_check summary heuristics stdstring
58 definitely lost: x (+0) bytes in 1 (+0) blocks
59 indirectly lost: 0 (+0) bytes in 0 (+0) blocks
60 possibly lost: x (-x) bytes in 4 (-1) blocks
61 still reachable: x (+x) bytes in 4 (+1) blocks
62 of which reachable via heuristic:
63 stdstring : x (+x) bytes in 2 (+2) blocks
64 length64 : 0 (-x) bytes in 0 (-1) blocks
65 To see details of leaked memory, give 'full' arg to leak_check
67 leak_check summary heuristics multipleinheritance,newarray,stdstring,length64
69 definitely lost: x (+0) bytes in 1 (+0) blocks
70 indirectly lost: 0 (+0) bytes in 0 (+0) blocks
71 possibly lost: 0 (-x) bytes in 0 (-4) blocks
72 still reachable: x (+x) bytes in 8 (+4) blocks
73 of which reachable via heuristic:
74 stdstring : x (+0) bytes in 2 (+0) blocks
75 length64 : x (+x) bytes in 1 (+1) blocks
76 newarray : x (+x) bytes in 1 (+1) blocks
77 multipleinheritance: x (+x) bytes in 2 (+2) blocks
78 To see details of leaked memory, give 'full' arg to leak_check
80 leak_check summary heuristics all
82 definitely lost: x (+0) bytes in 1 (+0) blocks
83 indirectly lost: 0 (+0) bytes in 0 (+0) blocks
84 possibly lost: 0 (+0) bytes in 0 (+0) blocks
85 still reachable: x (+0) bytes in 8 (+0) blocks
86 of which reachable via heuristic:
87 stdstring : x (+0) bytes in 2 (+0) blocks
88 length64 : x (+0) bytes in 1 (+0) blocks
89 newarray : x (+0) bytes in 1 (+0) blocks
90 multipleinheritance: x (+0) bytes in 2 (+0) blocks
91 To see details of leaked memory, give 'full' arg to leak_check
93 leak_check summary heuristics none
95 definitely lost: x (+0) bytes in 1 (+0) blocks
96 indirectly lost: 0 (+0) bytes in 0 (+0) blocks
97 possibly lost: x (+x) bytes in 6 (+6) blocks
98 still reachable: x (-x) bytes in 2 (-6) blocks
99 of which reachable via heuristic:
100 stdstring : 0 (-x) bytes in 0 (-2) blocks
101 length64 : 0 (-x) bytes in 0 (-1) blocks
102 newarray : 0 (-x) bytes in 0 (-1) blocks
103 multipleinheritance: 0 (-x) bytes in 0 (-2) blocks
104 To see details of leaked memory, give 'full' arg to leak_check
106 Searching for pointers pointing in x bytes from 0x........
107 *0x........ interior points at x bytes inside 0x........
108 Address 0x........ is 0 bytes inside data symbol "ptr"
109 block at 0x........ considered reachable by ptr 0x........ using newarray heuristic
110 Searching for pointers pointing in x bytes from 0x........
111 *0x........ interior points at x bytes inside 0x........
112 Address 0x........ is 0 bytes inside data symbol "ptr"
113 block at 0x........ considered reachable by ptr 0x........ using newarray heuristic
132 in use at exit: 0 bytes in 0 blocks
134 All heap blocks were freed -- no leaks are possible
136 For lists of detected and suppressed errors, rerun with: -s
137 ERROR SUMMARY: 1 errors from 1 contexts (suppressed: 0 from 0)