crosstabs: Fix free of bad pointer and use-after-free error in cleanup.
authorBen Pfaff <blp@gnu.org>
Mon, 22 Jun 2009 04:11:25 +0000 (21:11 -0700)
committerBen Pfaff <blp@gnu.org>
Mon, 22 Jun 2009 04:11:25 +0000 (21:11 -0700)
commit67adf64d9367f8b43ef725d7f0c03895a5b6460b
treed5b9d3d55653e4ff4f1881ecb82c3f00776126f9
parentf3aed988c27ca4a37a5f5102c18012c3983a7191
crosstabs: Fix free of bad pointer and use-after-free error in cleanup.

In free_proc, 'pt' points within an array that is dynamically
allocated, not to a data structure that is dynamically allocated, so
we must not try to free it on each iteration.  Instead, free the
dynamic array itself (proc->pivots) only once.
src/language/stats/crosstabs.q