UART drivers: fix double free() of serial port info

Fixes issue 242
This commit is contained in:
Philippe Teuwen 2013-03-16 12:25:28 +01:00
parent 8485996f13
commit ca7477e935
3 changed files with 0 additions and 3 deletions

View file

@ -497,7 +497,6 @@ acr122s_close(nfc_device *pnd)
close(DRIVER_DATA(pnd)->abort_fds[1]);
#endif
free(DRIVER_DATA(pnd)->port);
pn53x_data_free(pnd);
nfc_device_free(pnd);
}

View file

@ -187,7 +187,6 @@ arygon_close(nfc_device *pnd)
close(DRIVER_DATA(pnd)->iAbortFds[1]);
#endif
free(DRIVER_DATA(pnd)->port);
pn53x_data_free(pnd);
nfc_device_free(pnd);
}

View file

@ -160,7 +160,6 @@ pn532_uart_close(nfc_device *pnd)
close(DRIVER_DATA(pnd)->iAbortFds[1]);
#endif
free(DRIVER_DATA(pnd)->port);
pn53x_data_free(pnd);
nfc_device_free(pnd);
}