From 904bc51fb65f241583726d024d194c2de841a370 Mon Sep 17 00:00:00 2001 From: iceman1001 Date: Mon, 5 Oct 2020 13:40:01 +0200 Subject: [PATCH] coverity 303200 --- client/src/cmdhf14b.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/client/src/cmdhf14b.c b/client/src/cmdhf14b.c index 542dc3aec..eae32c324 100644 --- a/client/src/cmdhf14b.c +++ b/client/src/cmdhf14b.c @@ -139,11 +139,12 @@ static int CmdHF14BSim(const char *Cmd) { uint8_t pupi[4]; int n = 0; int res = CLIParamHexToBuf(arg_get_str(ctx, 1), pupi, sizeof(pupi), &n); + CLIParserFree(ctx); + if (res) { PrintAndLogEx(FAILED, "failed to read pupi"); return PM3_EINVARG; } - CLIParserFree(ctx); clearCommandBuffer(); SendCommandNG(CMD_HF_ISO14443B_SIMULATE, pupi, sizeof(pupi)); return PM3_SUCCESS;