Fixes nfc_drivers memory leak
This commit is contained in:
parent
1e16795341
commit
7e26869b68
1 changed files with 6 additions and 0 deletions
|
@ -185,6 +185,12 @@ nfc_init(nfc_context **context)
|
|||
void
|
||||
nfc_exit(nfc_context *context)
|
||||
{
|
||||
while (nfc_drivers) {
|
||||
struct nfc_driver_list *pndl = nfc_drivers;
|
||||
nfc_drivers = pndl->next;
|
||||
free (pndl);
|
||||
}
|
||||
|
||||
nfc_context_free(context);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue