Commit 7e26869b authored by Romuald Conty's avatar Romuald Conty

Fixes nfc_drivers memory leak

parent 1e167953
......@@ -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);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment