int
cmd_regression (struct lexer *lexer, struct dataset *ds)
{
+ int k;
struct regression regression;
const struct dictionary *dict = dataset_dict (ds);
subcommand_save (®ression);
+ for (k = 0; k < regression.n_dep_vars; k++)
+ linreg_free (regression.models[k]);
free (regression.models);
free (regression.vars);
free (regression.dep_vars);
return CMD_SUCCESS;
error:
+ for (k = 0; k < regression.n_dep_vars; k++)
+ linreg_free (regression.models[k]);
free (regression.models);
free (regression.vars);
free (regression.dep_vars);