mirror of
https://github.com/nfc-tools/libnfc.git
synced 2026-07-28 14:41:51 +00:00
Adds nfc_free() function to freed allocated buffers
Fixes issue 228 (Thanks to Alex Lian)
This commit is contained in:
@@ -125,7 +125,7 @@ main(int argc, const char *argv[])
|
||||
if (verbose) {
|
||||
if (nfc_device_get_information_about(pnd, &strinfo) >= 0) {
|
||||
printf("%s", strinfo);
|
||||
free(strinfo);
|
||||
nfc_free(strinfo);
|
||||
}
|
||||
}
|
||||
nfc_close(pnd);
|
||||
|
||||
Reference in New Issue
Block a user