diff --git a/libfreefare/mifare_desfire.c b/libfreefare/mifare_desfire.c index 9b425af..d7e531d 100644 --- a/libfreefare/mifare_desfire.c +++ b/libfreefare/mifare_desfire.c @@ -812,7 +812,6 @@ mifare_desfire_get_application_ids (FreefareTag tag, MifareDESFireAID *aids[], s *count = (sn - 1)/3; - *aids = malloc (sn - 1); if (!(*aids = malloc ((*count + 1) * sizeof (MifareDESFireAID)))) return -1;