mirror of
https://github.com/nfc-tools/libnfc.git
synced 2026-02-26 19:56:39 +00:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user