mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-01-03 22:53:58 +08:00
fix coverity 290273
This commit is contained in:
parent
d8ef01b69d
commit
bd8edced9b
1 changed files with 1 additions and 0 deletions
|
@ -2482,6 +2482,7 @@ static int CmdHF14ADesWriteData(const char *Cmd) {
|
|||
uint8_t *data = (uint8_t *)calloc(dlength, sizeof(uint8_t));
|
||||
if (data == NULL) {
|
||||
PrintAndLogEx(ERR, "failed to allocate memory");
|
||||
CLIParserFree(ctx);
|
||||
return PM3_EMALLOC;
|
||||
}
|
||||
if (CLIParamHexToBuf(arg_get_str(4), data, dlength, &dlength)) {
|
||||
|
|
Loading…
Reference in a new issue