The first test in cmd_factor() is:
if (!lex_force_match_id (lexer, "VARIABLES"))
If this fails, then control jumps to the "error" label, which frees
factor.vars, which has not been initialized at this point.
This commit fixes the problem by initializing factor.vars to NULL. It is
not strictly necessary to also initialize factor.n_vars to 0, but it seems
like a good idea.
Found by Clang (http://clang-analyzer.llvm.org).
const struct dictionary *dict = dataset_dict (ds);
struct cmd_factor factor;
+ factor.n_vars = 0;
+ factor.vars = NULL;
factor.method = METHOD_CORR;
factor.missing_type = MISS_LISTWISE;
factor.exclude = MV_ANY;