mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-02-25 16:45:09 +08:00
coverity fixes
This commit is contained in:
parent
aa642d5d1e
commit
4df7c3bf03
1 changed files with 2 additions and 1 deletions
|
@ -1013,6 +1013,7 @@ static int CmdLegicDump(const char *Cmd) {
|
|||
saveFile(filename, ".bin", data, readlen);
|
||||
saveFileEML(filename, data, readlen, 8);
|
||||
saveFileJSON(filename, jsfLegic, data, readlen);
|
||||
free(data);
|
||||
return PM3_SUCCESS;
|
||||
}
|
||||
|
||||
|
@ -1076,7 +1077,7 @@ static int CmdLegicRestore(const char *Cmd) {
|
|||
}
|
||||
|
||||
if (card.cardsize != numofbytes) {
|
||||
PrintAndLogEx(WARNING, "Fail, filesize and cardsize is not equal. [%zu != %u]", card.cardsize, numofbytes);
|
||||
PrintAndLogEx(WARNING, "Fail, filesize and cardsize is not equal. [%u != %zu]", card.cardsize, numofbytes);
|
||||
free(data);
|
||||
return PM3_EFILE;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue