pn532_spi: fix double free() of spi port info
This commit is contained in:
parent
1417bdc164
commit
87a3dd7067
1 changed files with 0 additions and 1 deletions
|
@ -160,7 +160,6 @@ pn532_spi_close(nfc_device *pnd)
|
|||
// Release SPI port
|
||||
spi_close(DRIVER_DATA(pnd)->port);
|
||||
|
||||
free(DRIVER_DATA(pnd)->port);
|
||||
pn53x_data_free(pnd);
|
||||
nfc_device_free(pnd);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue