plug a memory leak. Fixes bug #18315.
+2007-09-04 Ben Pfaff <blp@gnu.org>
+
+ * crosstabs.q (cmd_crosstabs): Free xtab and the structures that
+ it points to, to plug a memory leak. Fixes bug #18315.
+
2007-08-15 Jason Stover <jhs@wonko.gcsu.edu>
* regression.q (identify_indep_vars): Print an error if dependent
cmd_crosstabs (struct lexer *lexer, struct dataset *ds)
{
int result = internal_cmd_crosstabs (lexer, ds);
+ int i;
free (variables);
pool_destroy (pl_tc);
pool_destroy (pl_col);
+ for (i = 0; i < nxtab; i++)
+ free (xtab[i]);
+ free (xtab);
+
return result;
}