fix coverity 290266
This commit is contained in:
@@ -146,9 +146,10 @@ int CLIParserParseStringEx(CLIParserContext *ctx, const char *str, void *vargtab
|
|||||||
}
|
}
|
||||||
|
|
||||||
void CLIParserFree(CLIParserContext *ctx) {
|
void CLIParserFree(CLIParserContext *ctx) {
|
||||||
arg_freetable(ctx->argtable, ctx->argtableLen);
|
if (ctx) {
|
||||||
free(ctx);
|
arg_freetable(ctx->argtable, ctx->argtableLen);
|
||||||
return;
|
free(ctx);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// convertors
|
// convertors
|
||||||
|
|||||||
Reference in New Issue
Block a user