drivers/wireless/mfrc522.c: Fix memory free command

This commit is contained in:
Alan Carvalho de Assis 2016-08-07 07:34:01 -06:00 committed by Gregory Nutt
parent 469aff0584
commit 10a7698112

View File

@ -1611,6 +1611,6 @@ int mfrc522_register(FAR const char *devpath, FAR struct spi_dev_s *spi)
return ret;
firmware_error:
free(dev);
kmm_free(dev);
return -ENODEV;
}