Fix memory leak in crosstabs 20100725040501/pspp
authorJohn Darrington <john@darrington.wattle.id.au>
Sat, 24 Jul 2010 16:21:15 +0000 (18:21 +0200)
committerJohn Darrington <john@darrington.wattle.id.au>
Sat, 24 Jul 2010 16:21:15 +0000 (18:21 +0200)
src/language/stats/crosstabs.q

index acec9769b48d2ecf11eff6ef837ffb15aaa027b2..72c36555f03ac762d68ac67be1a28c26fdd2d619 100644 (file)
@@ -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. */