Fix memoy leak.
This commit is contained in:
parent
b6792a0a08
commit
636cd9c761
1 changed files with 0 additions and 1 deletions
|
@ -812,7 +812,6 @@ mifare_desfire_get_application_ids (FreefareTag tag, MifareDESFireAID *aids[], s
|
||||||
|
|
||||||
*count = (sn - 1)/3;
|
*count = (sn - 1)/3;
|
||||||
|
|
||||||
*aids = malloc (sn - 1);
|
|
||||||
if (!(*aids = malloc ((*count + 1) * sizeof (MifareDESFireAID))))
|
if (!(*aids = malloc ((*count + 1) * sizeof (MifareDESFireAID))))
|
||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue