From bd8edced9b2d304c542529b5bf7c351edfca1dd0 Mon Sep 17 00:00:00 2001 From: iceman1001 Date: Tue, 2 Jun 2020 11:07:29 +0200 Subject: [PATCH] fix coverity 290273 --- client/src/cmdhfmfdes.c | 1 + 1 file changed, 1 insertion(+) diff --git a/client/src/cmdhfmfdes.c b/client/src/cmdhfmfdes.c index 1d3943446..06e11ef1e 100644 --- a/client/src/cmdhfmfdes.c +++ b/client/src/cmdhfmfdes.c @@ -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)) {