From 462d986633640717e7eacbb44534c6fb26f2c425 Mon Sep 17 00:00:00 2001 From: Romain Tartiere Date: Wed, 16 Dec 2009 23:14:31 +0000 Subject: [PATCH] Free memory allocated by pick_device() once we are connected to the device in nfc_connect(). --- src/lib/nfc.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/lib/nfc.c b/src/lib/nfc.c index 4c9c74c..7bb2c82 100644 --- a/src/lib/nfc.c +++ b/src/lib/nfc.c @@ -131,6 +131,8 @@ nfc_device_t* nfc_connect(nfc_device_desc_t* pndd) DBG("No device available using %s driver",drivers_callbacks_list[uiDriver].acDriver); pndd = NULL; } + + free(pndd); } } } else {