From d8ef01b69dda83bef5159ea38d562ecfb93d0d7a Mon Sep 17 00:00:00 2001 From: iceman1001 Date: Tue, 2 Jun 2020 11:06:24 +0200 Subject: [PATCH] fix coverity 290272 --- client/src/emv/cmdemv.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/client/src/emv/cmdemv.c b/client/src/emv/cmdemv.c index 905bbb99e..3c606740b 100644 --- a/client/src/emv/cmdemv.c +++ b/client/src/emv/cmdemv.c @@ -427,6 +427,7 @@ static int CmdEMVAC(const char *Cmd) { if (termDecision == 0xff) { PrintAndLogEx(ERR, "ERROR: can't find terminal decision '%s'", arg_get_str(3)->sval[0]); + CLIParserFree(ctx); return PM3_EINVARG; } } else { @@ -438,9 +439,11 @@ static int CmdEMVAC(const char *Cmd) { bool dataMakeFromCDOL = arg_get_lit(5); bool APDULogging = arg_get_lit(6); bool decodeTLV = arg_get_lit(7); + EMVCommandChannel channel = ECC_CONTACTLESS; if (arg_get_lit(8)) channel = ECC_CONTACT; + PrintChannel(channel); CLIGetHexWithReturn(ctx, 9, data, &datalen); CLIParserFree(ctx);