From d2e75de06e1fcc42476e6b048d5f30a8771ace53 Mon Sep 17 00:00:00 2001 From: iceman1001 Date: Mon, 5 Oct 2020 13:38:04 +0200 Subject: [PATCH] coverity 303195 --- client/src/cmdlfhid.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/client/src/cmdlfhid.c b/client/src/cmdlfhid.c index e7a45ed75..191733bf4 100644 --- a/client/src/cmdlfhid.c +++ b/client/src/cmdlfhid.c @@ -426,6 +426,7 @@ static int CmdHIDBrute(const char *Cmd) { format_idx = HIDFindCardFormat((char*) format); if (format_idx == -1) { PrintAndLogEx(WARNING, "Unknown format: " _YELLOW_("%s"), format); + CLIParserFree(ctx); return PM3_EINVARG; } @@ -435,6 +436,8 @@ static int CmdHIDBrute(const char *Cmd) { cn_hi.OEM = arg_get_int_def(ctx, 6, 0); delay = arg_get_int_def(ctx, 7, 1000); + CLIParserFree(ctx); + if (arg_get_lit(ctx, 8) && arg_get_lit(ctx, 9)) { direction = 0; } else if (arg_get_lit(ctx, 8)) {