From 794fcdc1adf25252b453a1aca70392ab6f38d290 Mon Sep 17 00:00:00 2001 From: Philippe Teuwen Date: Wed, 27 Mar 2013 11:51:22 +0100 Subject: [PATCH] pn532_spi: fix missing free(ndd.port) --- libnfc/drivers/pn532_spi.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libnfc/drivers/pn532_spi.c b/libnfc/drivers/pn532_spi.c index 8fe2389..9abb385 100644 --- a/libnfc/drivers/pn532_spi.c +++ b/libnfc/drivers/pn532_spi.c @@ -206,6 +206,7 @@ pn532_spi_open(const nfc_context *context, const nfc_connstring connstring) // We have a connection pnd = nfc_device_new(context, connstring); snprintf(pnd->name, sizeof(pnd->name), "%s:%s", PN532_SPI_DRIVER_NAME, ndd.port); + free(ndd.port); pnd->driver_data = malloc(sizeof(struct pn532_spi_data)); DRIVER_DATA(pnd)->port = sp;