drivers/wireless/mfrc522.c: Fix memory free command
This commit is contained in:
parent
469aff0584
commit
10a7698112
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user