coverity..
This commit is contained in:
1 parent
1b9490c6aa
commit
f830843442
1 file changed
+2
-1
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user