==127158== Memcheck, a memory error detector ==127158== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al. ==127158== Using Valgrind-3.15.0 and LibVEX; rerun with -h for copyright info ==127158== Command: ./memory_leak ==127158== @@@==127158== ==127158== HEAP SUMMARY: ==127158== in use at exit: 4 bytes in 1 blocks ==127158== total heap usage: 1 allocs, 0 frees, 4 bytes allocated ==127158== ==127158== 4 bytes in 1 blocks are definitely lost in loss record 1 of 1 ==127158== at 0x4C29F73: malloc (vg_replace_malloc.c:309) ==127158== by 0x4005E5: repeat_char (memory_leak.c:2) ==127158== by 0x400699: main (memory_leak.c:17) ==127158== ==127158== LEAK SUMMARY: ==127158== definitely lost: 4 bytes in 1 blocks ==127158== indirectly lost: 0 bytes in 0 blocks ==127158== possibly lost: 0 bytes in 0 blocks ==127158== still reachable: 0 bytes in 0 blocks ==127158== suppressed: 0 bytes in 0 blocks ==127158== ==127158== For lists of detected and suppressed errors, rerun with: -s ==127158== ERROR SUMMARY: 1 errors from 1 contexts (suppressed: 0 from 0)