fix a sanity memory leak with reserving memory used only for json file loading..

This commit is contained in:
iceman1001
2021-04-30 11:16:57 +02:00
parent 550fa5aa8f
commit 8243ac9749
6 changed files with 71 additions and 71 deletions

View File

@@ -257,7 +257,7 @@ static int CmdLFHitagEload(const char *Cmd) {
PrintAndLogEx(ERR, "error, cannot allocate memory");
return PM3_EMALLOC;
}
res = loadFileJSON(filename, dump, dumplen, &dumplen, NULL);
res = loadFileJSON(filename, (void *)dump, dumplen, &dumplen, NULL);
break;
}
case DICTIONARY: {