mirror of
https://github.com/nfc-tools/libnfc.git
synced 2026-03-13 02:53:46 +00:00
pn532_spi: fix double free() of spi port info
This commit is contained in:
@@ -160,7 +160,6 @@ pn532_spi_close(nfc_device *pnd)
|
|||||||
// Release SPI port
|
// Release SPI port
|
||||||
spi_close(DRIVER_DATA(pnd)->port);
|
spi_close(DRIVER_DATA(pnd)->port);
|
||||||
|
|
||||||
free(DRIVER_DATA(pnd)->port);
|
|
||||||
pn53x_data_free(pnd);
|
pn53x_data_free(pnd);
|
||||||
nfc_device_free(pnd);
|
nfc_device_free(pnd);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user