Fix use after free bug
nfc_exit(context); was called 2 times CID 1090348 (#1 of 1): Use after free (USE_AFTER_FREE)53. deref_arg: Calling "nfc_exit(nfc_context *)" dereferences freed pointer "context". (The dereference is assumed on the basis of the 'nonnull' parameter attribute.)
This commit is contained in:
parent
967f6e5623
commit
107b4ece8b
1 changed files with 0 additions and 1 deletions
|
@ -486,7 +486,6 @@ main(int argc, char *argv[])
|
|||
}
|
||||
if (!initiator_only_mode) {
|
||||
nfc_close(pndTarget);
|
||||
nfc_exit(context);
|
||||
}
|
||||
nfc_exit(context);
|
||||
exit(EXIT_FAILURE);
|
||||
|
|
Loading…
Reference in a new issue