coverity..

This commit is contained in:
iceman1001 2020-06-02 13:09:29 +02:00
parent 1b9490c6aa
commit f830843442

View file

@ -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;
}
}