mirror of
https://github.com/nfc-tools/libnfc.git
synced 2026-02-27 04:06:38 +00:00
Fixes nfc_drivers memory leak
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user