Code:
katmacadapc% valgrind --leak-check=full ./lz5 -12 .gitignore
==15922== Memcheck, a memory error detector
==15922== Copyright (C) 2002-2011, and GNU GPL'd, by Julian Seward et al.
==15922== Using Valgrind-3.7.0 and LibVEX; rerun with -h for copyright info
==15922== Command: ./lz5 -12 .gitignore
==15922==
Compressed filename will be : .gitignore.lz5
Compressed 305 bytes into 287 bytes ==> 94.10%
==15922==
==15922== HEAP SUMMARY:
==15922== in use at exit: 50,593,792 bytes in 2 blocks
==15922== total heap usage: 10 allocs, 8 frees, 59,246,766 bytes allocated
==15922==
==15922== 16,777,216 bytes in 1 blocks are definitely lost in loss record 1 of 2
==15922== at 0x4C272B8: calloc (vg_replace_malloc.c:566)
==15922== by 0x41066F: LZ5_createStreamHC (in /home/madamczyk/afl-1.94b/lz5/lz5)
==15922== by 0x411D24: LZ5F_compressBegin (in /home/madamczyk/afl-1.94b/lz5/lz5)
==15922== by 0x412960: LZ5F_compressFrame (in /home/madamczyk/afl-1.94b/lz5/lz5)
==15922== by 0x417A33: LZ5IO_compressFilename_extRess.isra.2 (in /home/madamczyk/afl-1.94b/lz5/lz5)
==15922== by 0x41868F: LZ5IO_compressFilename (in /home/madamczyk/afl-1.94b/lz5/lz5)
==15922== by 0x4195E5: main (in /home/madamczyk/afl-1.94b/lz5/lz5)
==15922==
==15922== 33,816,576 bytes in 1 blocks are possibly lost in loss record 2 of 2
==15922== at 0x4C272B8: calloc (vg_replace_malloc.c:566)
==15922== by 0x410640: LZ5_createStreamHC (in /home/madamczyk/afl-1.94b/lz5/lz5)
==15922== by 0x411D24: LZ5F_compressBegin (in /home/madamczyk/afl-1.94b/lz5/lz5)
==15922== by 0x412960: LZ5F_compressFrame (in /home/madamczyk/afl-1.94b/lz5/lz5)
==15922== by 0x417A33: LZ5IO_compressFilename_extRess.isra.2 (in /home/madamczyk/afl-1.94b/lz5/lz5)
==15922== by 0x41868F: LZ5IO_compressFilename (in /home/madamczyk/afl-1.94b/lz5/lz5)
==15922== by 0x4195E5: main (in /home/madamczyk/afl-1.94b/lz5/lz5)
==15922==
==15922== LEAK SUMMARY:
==15922== definitely lost: 16,777,216 bytes in 1 blocks
==15922== indirectly lost: 0 bytes in 0 blocks
==15922== possibly lost: 33,816,576 bytes in 1 blocks
==15922== still reachable: 0 bytes in 0 blocks
==15922== suppressed: 0 bytes in 0 blocks
==15922==
==15922== For counts of detected and suppressed errors, rerun with: -v
==15922== ERROR SUMMARY: 2 errors from 2 contexts (suppressed: 4 from 4)