Free memory allocated by pick_device() once we are connected to the device in nfc_connect().
This commit is contained in:
parent
51854f508c
commit
462d986633
1 changed files with 2 additions and 0 deletions
|
@ -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);
|
DBG("No device available using %s driver",drivers_callbacks_list[uiDriver].acDriver);
|
||||||
pndd = NULL;
|
pndd = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
free(pndd);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue