diff --git a/libnfc/drivers/pn53x_usb.c b/libnfc/drivers/pn53x_usb.c index a6dd841..ca871a6 100644 --- a/libnfc/drivers/pn53x_usb.c +++ b/libnfc/drivers/pn53x_usb.c @@ -430,6 +430,7 @@ pn53x_usb_open (const nfc_connstring connstring) error: // Free allocated structure on error. nfc_device_free (pnd); + pnd = NULL; free_mem: free (desc.dirname); free (desc.filename);