Don't return pointer on freed memory on error.
PR: http://code.google.com/p/nfc-tools/issues/detail?id=87 Submitted by: jkmalinen@gmail.com
This commit is contained in:
parent
68a1d5c450
commit
2f9bc90a95
1 changed files with 1 additions and 0 deletions
|
@ -430,6 +430,7 @@ pn53x_usb_open (const nfc_connstring connstring)
|
|||
error:
|
||||
// Free allocated structure on error.
|
||||
nfc_device_free (pnd);
|
||||
pnd = NULL;
|
||||
free_mem:
|
||||
free (desc.dirname);
|
||||
free (desc.filename);
|
||||
|
|
Loading…
Add table
Reference in a new issue