From: John Darrington Date: Sat, 24 Jul 2010 16:21:15 +0000 (+0200) Subject: Fix memory leak in crosstabs X-Git-Tag: v0.7.6~327 X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1d21394a515aa5a5ef9c2898119bc7fd22e158c1;p=pspp-builds.git Fix memory leak in crosstabs --- diff --git a/src/language/stats/crosstabs.q b/src/language/stats/crosstabs.q index acec9769..72c36555 100644 --- a/src/language/stats/crosstabs.q +++ b/src/language/stats/crosstabs.q @@ -1508,6 +1508,8 @@ format_cell_entry (struct tab_table *table, int c, int r, double value, tab_text_format (table, c, r, TAB_RIGHT, "%s%s", s + strspn (s, " "), suffixes); + + free (s); } /* Displays the crosstabulation table. */