mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-21 05:43:48 -07:00
fix coverity CID 319296
This commit is contained in:
parent
8497b3e3f6
commit
5775a283e9
1 changed files with 5 additions and 1 deletions
|
@ -903,6 +903,7 @@ static int CmdHFiClassELoad(const char *Cmd) {
|
|||
break;
|
||||
}
|
||||
case DICTIONARY: {
|
||||
free(dump);
|
||||
PrintAndLogEx(ERR, "Error: Only BIN/JSON/EML formats allowed");
|
||||
return PM3_EINVARG;
|
||||
}
|
||||
|
@ -1156,6 +1157,7 @@ static int CmdHFiClassDecrypt(const char *Cmd) {
|
|||
break;
|
||||
}
|
||||
case DICTIONARY: {
|
||||
free(decrypted);
|
||||
PrintAndLogEx(ERR, "Error: Only BIN/JSON/EML formats allowed");
|
||||
return PM3_EINVARG;
|
||||
}
|
||||
|
@ -2046,7 +2048,8 @@ static int CmdHFiClassRestore(const char *Cmd) {
|
|||
break;
|
||||
}
|
||||
case DICTIONARY: {
|
||||
PrintAndLogEx(ERR, "Error: Only BIN/JSON/EML formats allowed");
|
||||
free(dump);
|
||||
PrintAndLogEx(ERR, "Error: Only BIN/JSON/EML formats allowed");
|
||||
return PM3_EINVARG;
|
||||
}
|
||||
}
|
||||
|
@ -2547,6 +2550,7 @@ static int CmdHFiClassView(const char *Cmd) {
|
|||
break;
|
||||
}
|
||||
case DICTIONARY: {
|
||||
free(dump);
|
||||
PrintAndLogEx(ERR, "Error: Only BIN/JSON/EML formats allowed");
|
||||
return PM3_EINVARG;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue