Note the difference when using the --log option or not (no --fastidious option):
valgrind ./swarm -o /dev/null <(printf ">s1_10\nAA\n>s2_1\nCC\n") -l /dev/null
==2084== HEAP SUMMARY:
==2084== in use at exit: 552 bytes in 1 blocks
==2084== total heap usage: 28 allocs, 27 frees, 5,399,504 bytes allocated
valgrind ./swarm -o /dev/null <(printf ">s1_10\nAA\n>s2_1\nCC\n")
==2094== HEAP SUMMARY:
==2094== in use at exit: 0 bytes in 0 blocks
==2094== total heap usage: 26 allocs, 26 frees, 5,394,856 bytes allocated
==2094==
==2094== All heap blocks were freed -- no leaks are possible
There is a small memory leak when using the --log option (1 allocation is not freed).
Note the difference when using the
--log
option or not (no--fastidious
option):There is a small memory leak when using the
--log
option (1 allocation is not freed).