From e3765a7ec0fa0cae7fb7bfcb42630c6c1aecfac3 Mon Sep 17 00:00:00 2001 From: iceman1001 Date: Mon, 5 Apr 2021 08:14:59 +0200 Subject: [PATCH] fix coverity CID 317112,CID 317111 --- client/src/cmdlfhitag.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/client/src/cmdlfhitag.c b/client/src/cmdlfhitag.c index cdefd8a00..a9f21d4fe 100644 --- a/client/src/cmdlfhitag.c +++ b/client/src/cmdlfhitag.c @@ -339,9 +339,10 @@ static int CmdLFHitagEload(const char *Cmd) { clearCommandBuffer(); SendCommandNG(CMD_LF_HITAG_ELOAD, (uint8_t *)&payload, 2 + dumplen); } else { - PrintAndLogEx(ERR, "error, wrong dump file size. got %u", dumplen); + PrintAndLogEx(ERR, "error, wrong dump file size. got %zu", dumplen); } + free(dump); return PM3_SUCCESS; }