-
Notifications
You must be signed in to change notification settings - Fork 0
/
valgrind_initial_output
33 lines (32 loc) · 1.63 KB
/
valgrind_initial_output
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
rishchou@rishchou-Inspiron-5520:~/Desktop/week5/cpp-boilerplate/build$ valgrind --tool=memcheck --leak-check=yes ./app/shell-app
==8190== Memcheck, a memory error detector
==8190== Copyright (C) 2002-2015, and GNU GPL'd, by Julian Seward et al.
==8190== Using Valgrind-3.11.0 and LibVEX; rerun with -h for copyright info
==8190== Command: ./app/shell-app
==8190==
Averaged sensor reading: 10
==8190== Conditional jump or move depends on uninitialised value(s)
==8190== at 0x401DC7: main (main.cpp:9)
==8190==
==8190==
==8190== HEAP SUMMARY:
==8190== in use at exit: 72,748 bytes in 3 blocks
==8190== total heap usage: 4 allocs, 1 frees, 73,772 bytes allocated
==8190==
==8190== 44 (24 direct, 20 indirect) bytes in 1 blocks are definitely lost in loss record 2 of 3
==8190== at 0x4C2E0EF: operator new(unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==8190== by 0x401EEA: AnalogSensor::Read() (AnalogSensor.cpp:16)
==8190== by 0x401D9A: main (main.cpp:7)
==8190==
==8190== LEAK SUMMARY:
==8190== definitely lost: 24 bytes in 1 blocks
==8190== indirectly lost: 20 bytes in 1 blocks
==8190== possibly lost: 0 bytes in 0 blocks
==8190== still reachable: 72,704 bytes in 1 blocks
==8190== suppressed: 0 bytes in 0 blocks
==8190== Reachable blocks (those to which a pointer was found) are not shown.
==8190== To see them, rerun with: --leak-check=full --show-leak-kinds=all
==8190==
==8190== For counts of detected and suppressed errors, rerun with: -v
==8190== Use --track-origins=yes to see where uninitialised values come from
==8190== ERROR SUMMARY: 2 errors from 2 contexts (suppressed: 0 from 0)