dbrgn / miniaturo

A drop-in replacement for raw-thumbnailer.
GNU General Public License v3.0
8 stars 1 forks source link

Test for memory leaks #3

Closed dbrgn closed 3 years ago

dbrgn commented 3 years ago
$ valgrind --leak-check=full --track-fds=yes target/debug/miniaturo -i DSCF0671.RAF -o thumb.png
==136336== Memcheck, a memory error detector
==136336== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al.
==136336== Using Valgrind-3.16.1 and LibVEX; rerun with -h for copyright info
==136336== Command: target/debug/miniaturo -i DSCF0671.RAF -o thumb.png
==136336==
==136336==
==136336== FILE DESCRIPTORS: 3 open at exit.
==136336== Open file descriptor 2: /dev/pts/2
==136336==    <inherited from parent>
==136336==
==136336== Open file descriptor 1: /dev/pts/2
==136336==    <inherited from parent>
==136336==
==136336== Open file descriptor 0: /dev/pts/2
==136336==    <inherited from parent>
==136336==
==136336==
==136336== HEAP SUMMARY:
==136336==     in use at exit: 0 bytes in 0 blocks
==136336==   total heap usage: 2,344 allocs, 2,344 frees, 1,071,535 bytes allocated
==136336==
==136336== All heap blocks were freed -- no leaks are possible
==136336==
==136336== For lists of detected and suppressed errors, rerun with: -s
==136336== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)