Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions homework/resourceD/valgrind-output.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
valgrind --leak-check=full ./resourceD d
==4245== Memcheck, a memory error detector
==4245== Copyright (C) 2002-2022, and GNU GPL'd, by Julian Seward et al.
==4245== Using Valgrind-3.22.0 and LibVEX; rerun with -h for copyright info
==4245== Command: ./resourceD d
==4245==
Using resource. Passed d
Passed d. d is prohibited.
==4245==
==4245== HEAP SUMMARY:
==4245== in use at exit: 1 bytes in 1 blocks
==4245== total heap usage: 5 allocs, 4 frees, 74,948 bytes allocated
==4245==
==4245== 1 bytes in 1 blocks are definitely lost in loss record 1 of 1
==4245== at 0x4846FA3: operator new(unsigned long) (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so)
==4245== by 0x109335: main (resourceD.cpp:30)
==4245==
==4245== LEAK SUMMARY:
==4245== definitely lost: 1 bytes in 1 blocks
==4245== indirectly lost: 0 bytes in 0 blocks
==4245== possibly lost: 0 bytes in 0 blocks
==4245== still reachable: 0 bytes in 0 blocks
==4245== suppressed: 0 bytes in 0 blocks
==4245==
==4245== For lists of detected and suppressed errors, rerun with: -s
==4245== ERROR SUMMARY: 1 errors from 1 contexts (suppressed: 0 from 0)