2 valgrind output will go to
log
4 4 bytes in
1 blocks are definitely lost in loss record ... of ...
5 by
0x........
: doit
() (leak_cpp_interior.cpp
:89)
6 by
0x........
: main
(leak_cpp_interior.cpp
:104)
9 definitely lost
: 4 bytes in
1 blocks
10 indirectly lost
: 0 bytes in
0 blocks
11 possibly lost
: 0 bytes in
0 blocks
12 still reachable
: 111 bytes in
7 blocks
13 of which reachable via heuristic
:
14 stdstring
: 56 bytes in
2 blocks
15 newarray
: 7 bytes in
1 blocks
16 multipleinheritance
: 24 bytes in
2 blocks
17 suppressed
: 0 bytes in
0 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
: 4 (+0) bytes in
1 (+0) blocks
24 indirectly lost
: 0 (+0) bytes in
0 (+0) blocks
25 possibly lost
: 63 (+63) bytes in
3 (+3) blocks
26 still reachable
: 48 (-63) bytes in
4 (-3) blocks
27 of which reachable via heuristic
:
28 stdstring
: 0 (-56) bytes in
0 (-2) blocks
29 newarray
: 0 (-7) bytes in
0 (-1) blocks
30 multipleinheritance
: 24 (+0) bytes in
2 (+0) blocks
31 suppressed
: 0 (+0) bytes in
0 (+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
: 4 (+0) bytes in
1 (+0) blocks
37 indirectly lost
: 0 (+0) bytes in
0 (+0) blocks
38 possibly lost
: 80 (+17) bytes in
4 (+1) blocks
39 still reachable
: 31 (-17) bytes in
3 (-1) blocks
40 of which reachable via heuristic
:
41 newarray
: 7 (+7) bytes in
1 (+1) blocks
42 multipleinheritance
: 0 (-24) bytes in
0 (-2) blocks
43 suppressed
: 0 (+0) bytes in
0 (+0) blocks
44 To see details of leaked memory
, give
'full' arg to leak_check
46 leak_check summary heuristics stdstring
48 definitely lost
: 4 (+0) bytes in
1 (+0) blocks
49 indirectly lost
: 0 (+0) bytes in
0 (+0) blocks
50 possibly lost
: 31 (-49) bytes in
3 (-1) blocks
51 still reachable
: 80 (+49) bytes in
4 (+1) blocks
52 of which reachable via heuristic
:
53 stdstring
: 56 (+56) bytes in
2 (+2) blocks
54 newarray
: 0 (-7) bytes in
0 (-1) blocks
55 suppressed
: 0 (+0) bytes in
0 (+0) blocks
56 To see details of leaked memory
, give
'full' arg to leak_check
58 Searching
for pointers pointing in
20 bytes from
0x........
59 *0x........ interior points at
4 bytes inside
0x........
60 Address
0x........ is
0 bytes inside data symbol
"ptr"
61 block at
0x........ considered reachable by ptr
0x........ using newarray heuristic
80 in use at exit
: 0 bytes in
0 blocks
81 total heap usage
: 8 allocs
, 8 frees
, 115 bytes allocated
83 All heap blocks were freed
-- no leaks are possible
85 For counts of detected and suppressed errors
, rerun with
: -v
86 ERROR SUMMARY
: 1 errors from
1 contexts
(suppressed
: 0 from
0)