Adds nfc_free() function to freed allocated buffers

Fixes issue 228 (Thanks to Alex Lian)
This commit is contained in:
Romuald Conty 2013-02-16 14:20:37 +01:00
parent ffd5928dc6
commit f8601886fd
4 changed files with 15 additions and 3 deletions

View file

@ -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);