pn532_spi: fix double free() of spi port info

This commit is contained in:
Philippe Teuwen 2013-03-27 11:36:41 +01:00
parent 1417bdc164
commit 87a3dd7067

View file

@ -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);
}