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)
8 x bytes in 1 blocks are possibly lost in loss record ... of ...
9 by 0x........: doit() (leak_cpp_interior.cpp:109)
10 by 0x........: main (leak_cpp_interior.cpp:134)
13 definitely lost: x bytes in 1 blocks
14 indirectly lost: 0 bytes in 0 blocks
15 possibly lost: x bytes in 1 blocks
16 still reachable: x bytes in 7 blocks
17 of which reachable via heuristic:
18 stdstring : x bytes in 2 blocks
19 length64 : x bytes in 1 blocks
20 multipleinheritance: x bytes in 2 blocks
21 Reachable blocks (those to which a pointer was found) are not shown.
22 To see them, rerun with: --leak-check=full --show-leak-kinds=all
24 leak_check summary heuristics multipleinheritance
26 definitely lost: x (+0) bytes in 1 (+0) blocks
27 indirectly lost: 0 (+0) bytes in 0 (+0) blocks
28 possibly lost: x (+x) bytes in 4 (+3) blocks
29 still reachable: x (-x) bytes in 4 (-3) blocks
30 of which reachable via heuristic:
31 stdstring : 0 (-x) bytes in 0 (-2) blocks
32 length64 : 0 (-x) bytes in 0 (-1) blocks
33 multipleinheritance: x (+0) bytes in 2 (+0) blocks
34 To see details of leaked memory, give 'full' arg to leak_check
36 leak_check summary any heuristics newarray
38 definitely lost: x (+0) bytes in 1 (+0) blocks
39 indirectly lost: 0 (+0) bytes in 0 (+0) blocks
40 possibly lost: x (+x) bytes in 6 (+2) blocks
41 still reachable: x (-x) bytes in 2 (-2) blocks
42 of which reachable via heuristic:
43 multipleinheritance: 0 (-x) bytes in 0 (-2) blocks
44 To see details of leaked memory, give 'full' arg to leak_check
46 leak_check summary heuristics length64
48 definitely lost: x (+0) bytes in 1 (+0) blocks
49 indirectly lost: 0 (+0) bytes in 0 (+0) blocks
50 possibly lost: x (-x) bytes in 5 (-1) blocks
51 still reachable: x (+x) bytes in 3 (+1) blocks
52 of which reachable via heuristic:
53 length64 : x (+x) bytes in 1 (+1) 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: x (-x) bytes in 1 (-3) blocks
72 still reachable: x (+x) bytes in 7 (+3) 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 multipleinheritance: x (+x) bytes in 2 (+2) blocks
77 To see details of leaked memory, give 'full' arg to leak_check
79 leak_check summary heuristics all
81 definitely lost: x (+0) bytes in 1 (+0) blocks
82 indirectly lost: 0 (+0) bytes in 0 (+0) blocks
83 possibly lost: x (+0) bytes in 1 (+0) blocks
84 still reachable: x (+0) bytes in 7 (+0) blocks
85 of which reachable via heuristic:
86 stdstring : x (+0) bytes in 2 (+0) blocks
87 length64 : x (+0) bytes in 1 (+0) blocks
88 multipleinheritance: x (+0) bytes in 2 (+0) blocks
89 To see details of leaked memory, give 'full' arg to leak_check
91 leak_check summary heuristics none
93 definitely lost: x (+0) bytes in 1 (+0) blocks
94 indirectly lost: 0 (+0) bytes in 0 (+0) blocks
95 possibly lost: x (+x) bytes in 6 (+5) blocks
96 still reachable: x (-x) bytes in 2 (-5) blocks
97 of which reachable via heuristic:
98 stdstring : 0 (-x) bytes in 0 (-2) blocks
99 length64 : 0 (-x) bytes in 0 (-1) blocks
100 multipleinheritance: 0 (-x) bytes in 0 (-2) blocks
101 To see details of leaked memory, give 'full' arg to leak_check
103 Searching for pointers pointing in x bytes from 0x........
104 *0x........ interior points at x bytes inside 0x........
105 Address 0x........ is 0 bytes inside data symbol "ptr"
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"
127 in use at exit: 0 bytes in 0 blocks
129 All heap blocks were freed -- no leaks are possible
131 For lists of detected and suppressed errors, rerun with: -s
132 ERROR SUMMARY: 2 errors from 2 contexts (suppressed: 0 from 0)