Fix memory leak.

This commit is contained in:
Romain Tartière 2015-04-20 14:43:15 +02:00
parent 4acd3ac72b
commit b710ba5abd

View file

@ -1235,6 +1235,8 @@ mifare_desfire_get_iso_file_ids (MifareTag tag, uint16_t **files, size_t *count)
(*files)[i] = le16toh (*(uint16_t *)(p + (2*i))); (*files)[i] = le16toh (*(uint16_t *)(p + (2*i)));
} }
free (data);
return 0; return 0;
} }