poll for tags, libfreefare seems to leak memory :(

==7894== HEAP SUMMARY:
==7894==     in use at exit: 475 bytes in 41 blocks
==7894==   total heap usage: 641 allocs, 600 frees, 64,749 bytes
allocated
==7894==
==7894== Searching for pointers to 41 not-freed blocks
==7894== Checked 176,808 bytes
==7894==
==7894== 152 bytes in 19 blocks are definitely lost in loss record 3
of 4
==7894==    at 0x4C2AB80: malloc (in
/usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==7894==    by 0x4E3B037: freefare_get_tags (in
/usr/lib/x86_64-linux-gnu/libfreefare.so.0.0.0)
==7894==    by 0x4012CF: main (read_personalized.c:95)
==7894==
==7894== 300 bytes in 20 blocks are definitely lost in loss record 4
of 4
==7894==    at 0x4C2AB80: malloc (in
/usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==7894==    by 0x4E3B13A: freefare_get_tag_uid (in
/usr/lib/x86_64-linux-gnu/libfreefare.so.0.0.0)
==7894==    by 0x401332: main (read_personalized.c:107)
==7894==
==7894== LEAK SUMMARY:
==7894==    definitely lost: 452 bytes in 39 blocks
==7894==    indirectly lost: 0 bytes in 0 blocks
==7894==      possibly lost: 0 bytes in 0 blocks
==7894==    still reachable: 23 bytes in 2 blocks
==7894==         suppressed: 0 bytes in 0 blocks
==7894== Reachable blocks (those to which a pointer was found) are not
shown.
==7894== To see them, rerun with: --leak-check=full
--show-leak-kinds=all
==7894==
==7894== ERROR SUMMARY: 2 errors from 2 contexts (suppressed: 0 from 0)
==7894== ERROR SUMMARY: 2 errors from 2 contexts (suppressed: 0 from 0)
the other leak was my fault, oops...

==7914== HEAP SUMMARY:
==7914==     in use at exit: 200 bytes in 25 blocks
==7914==   total heap usage: 641 allocs, 616 frees, 64,067 bytes
allocated
==7914==
==7914== Searching for pointers to 25 not-freed blocks
==7914== Checked 176,800 bytes
==7914==
==7914== 192 bytes in 24 blocks are definitely lost in loss record 2
of 2
==7914==    at 0x4C2AB80: malloc (in
/usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==7914==    by 0x4E3B037: freefare_get_tags (in
/usr/lib/x86_64-linux-gnu/libfreefare.so.0.0.0)
==7914==    by 0x4012CF: main (read_personalized.c:95)
==7914==
==7914== LEAK SUMMARY:
==7914==    definitely lost: 192 bytes in 24 blocks
==7914==    indirectly lost: 0 bytes in 0 blocks
==7914==      possibly lost: 0 bytes in 0 blocks
==7914==    still reachable: 8 bytes in 1 blocks
==7914==         suppressed: 0 bytes in 0 blocks
==7914== Reachable blocks (those to which a pointer was found) are not
shown.
==7914== To see them, rerun with: --leak-check=full
--show-leak-kinds=all
==7914==
==7914== ERROR SUMMARY: 1 errors from 1 contexts (suppressed: 0 from 0)
==7914== ERROR SUMMARY: 1 errors from 1 contexts (suppressed: 0 from 0)
ah, the other leak was my fault too...

==7932== HEAP SUMMARY:
==7932==     in use at exit: 0 bytes in 0 blocks
==7932==   total heap usage: 629 allocs, 629 frees, 61,243 bytes
allocated
==7932==
==7932== All heap blocks were freed -- no leaks are possible
==7932==
==7932== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)
==7932== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)
mark the memory leak