mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2024-12-31 04:39:49 +08:00
fix coverity 286922 mem leak
This commit is contained in:
parent
47d9a73fd4
commit
96108d826a
1 changed files with 5 additions and 1 deletions
|
@ -2474,7 +2474,11 @@ static int CmdHF14ADesWriteData(const char *Cmd) {
|
|||
PrintAndLogEx(ERR, "failed to allocate memory");
|
||||
return PM3_EMALLOC;
|
||||
}
|
||||
CLIGetHexWithReturn(4, data, &dlength);
|
||||
if (CLIParamHexToBuf(arg_get_str(4), data, sizeof(data), &dlength)) {
|
||||
free(data);
|
||||
CLIParserFree();
|
||||
return PM3_ESOFT;
|
||||
}
|
||||
|
||||
int type = arg_get_int(5);
|
||||
|
||||
|
|
Loading…
Reference in a new issue