UART drivers: fix double free() of serial port info
Fixes issue 242
This commit is contained in:
parent
8485996f13
commit
ca7477e935
3 changed files with 0 additions and 3 deletions
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue