fix coverity 290266
This commit is contained in:
1 parent
19f2c0ef89
commit
2daa2c09fd
1 file changed
+4
-3
@@ -146,9 +146,10 @@ int CLIParserParseStringEx(CLIParserContext *ctx, const char *str, void *vargtab
|
||||
}
|
||||
|
||||
void CLIParserFree(CLIParserContext *ctx) {
|
||||
arg_freetable(ctx->argtable, ctx->argtableLen);
|
||||
free(ctx);
|
||||
return;
|
||||
if (ctx) {
|
||||
arg_freetable(ctx->argtable, ctx->argtableLen);
|
||||
free(ctx);
|
||||
}
|
||||
}
|
||||
|
||||
// convertors
|
||||
|
||||
Reference in new issue
Block a user