Fix memory leak.
This commit is contained in:
parent
4acd3ac72b
commit
b710ba5abd
1 changed files with 2 additions and 0 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue