mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2026-10-22 13:12:21 +00:00
fix coverity 290273
This commit is contained in:
1 parent
d8ef01b69d
commit
bd8edced9b
1 file changed
+1
@@ -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)) {
|
||||
|
||||
Reference in new issue
Block a user