diff --git a/client/deps/cliparser/cliparser.c b/client/deps/cliparser/cliparser.c index 1e379556d..b3beb6ae0 100644 --- a/client/deps/cliparser/cliparser.c +++ b/client/deps/cliparser/cliparser.c @@ -146,9 +146,10 @@ int CLIParserParseStringEx(CLIParserContext *ctx, const char *str, void *vargtab } void CLIParserFree(CLIParserContext *ctx) { - if (ctx) { + if (ctx != NULL) { arg_freetable(ctx->argtable, ctx->argtableLen); free(ctx); + ctx = NULL; } }