Fix memoy leak.

This commit is contained in:
Massimiliano Zilli 2015-09-08 17:00:07 +02:00 committed by Romain Tartière
parent b6792a0a08
commit 636cd9c761

View file

@ -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;