Stop leaking UID

This commit is contained in:
Romain Tartière 2015-06-01 13:16:11 +02:00
parent 1e43abd9d4
commit 343959c5dc

View file

@ -51,7 +51,9 @@ main (void)
} }
for (int i = 0; tags[i]; i++) { for (int i = 0; tags[i]; i++) {
printf ("Dumping %s tag %s\n", freefare_get_tag_friendly_name (tags[i]), freefare_get_tag_uid (tags[i])); char *uid = freefare_get_tag_uid (tags[i]);
printf ("Dumping %s tag %s\n", freefare_get_tag_friendly_name (tags[i]), uid);
free (uid);
printf ("Number\tName\tData\n"); printf ("Number\tName\tData\n");
for (int block = 0x00; block < 0x0f; block++) { for (int block = 0x00; block < 0x0f; block++) {