From ca7477e935df179beafa4998093d75a7bb724d50 Mon Sep 17 00:00:00 2001 From: Philippe Teuwen Date: Sat, 16 Mar 2013 12:25:28 +0100 Subject: [PATCH] UART drivers: fix double free() of serial port info Fixes issue 242 --- libnfc/drivers/acr122s.c | 1 - libnfc/drivers/arygon.c | 1 - libnfc/drivers/pn532_uart.c | 1 - 3 files changed, 3 deletions(-) diff --git a/libnfc/drivers/acr122s.c b/libnfc/drivers/acr122s.c index 4665053..407e4c9 100644 --- a/libnfc/drivers/acr122s.c +++ b/libnfc/drivers/acr122s.c @@ -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); } diff --git a/libnfc/drivers/arygon.c b/libnfc/drivers/arygon.c index dc52ad9..f34558e 100644 --- a/libnfc/drivers/arygon.c +++ b/libnfc/drivers/arygon.c @@ -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); } diff --git a/libnfc/drivers/pn532_uart.c b/libnfc/drivers/pn532_uart.c index 409b2e7..0beb8a6 100644 --- a/libnfc/drivers/pn532_uart.c +++ b/libnfc/drivers/pn532_uart.c @@ -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); }