Open z16166 opened 11 months ago
At the very end of _tmain() in yara cli, there is the following line: args_free(options);
args_free(options);
Here is the body of args_free():
void args_free(args_option_t* options) { for (; options->type != ARGS_OPT_END; options++) { if (options->type == ARGS_OPT_STRING && options->value != NULL) { free(options->value); } } }
If options->type is ARGS_OPT_STRING , options->value will point to an array of pointer "ext_vars": static char* ext_vars[MAX_ARGS_EXT_VAR + 1];
static char* ext_vars[MAX_ARGS_EXT_VAR + 1];
so there may be leaks?
At the very end of _tmain() in yara cli, there is the following line:
args_free(options);
Here is the body of args_free():
If options->type is ARGS_OPT_STRING , options->value will point to an array of pointer "ext_vars":
static char* ext_vars[MAX_ARGS_EXT_VAR + 1];
so there may be leaks?