Fixes nfc_drivers memory leak

This commit is contained in:
Romuald Conty 2013-02-21 19:58:40 +01:00
parent 1e16795341
commit 7e26869b68

View file

@ -185,6 +185,12 @@ nfc_init(nfc_context **context)
void void
nfc_exit(nfc_context *context) 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); nfc_context_free(context);
} }