From: John Darrington Date: Thu, 8 Nov 2007 21:25:39 +0000 (+0000) Subject: Fixed memory leaks. X-Git-Tag: v0.6.0~195 X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0d70c2c8ed5d4ae5b40bb98c6c31db4f8ba87d68;p=pspp-builds.git Fixed memory leaks. --- diff --git a/src/data/datasheet.c b/src/data/datasheet.c index 842e9c3a..da85d963 100644 --- a/src/data/datasheet.c +++ b/src/data/datasheet.c @@ -1339,6 +1339,8 @@ check_datasheet_casereader (struct mc *mc, struct casereader *reader, "%g != %g", row, col, row_cnt, column_cnt, case_num_idx (&c, col), array[row][col]); + + case_destroy (&c); } if (casereader_read (reader, &c)) diff --git a/src/data/gnumeric-reader.c b/src/data/gnumeric-reader.c index f4292a06..cc8d335b 100644 --- a/src/data/gnumeric-reader.c +++ b/src/data/gnumeric-reader.c @@ -633,6 +633,7 @@ gnumeric_open_reader (struct gnumeric_read_info *gri, struct dictionary **dict) } free (var_spec); + dict_destroy (*dict); gnm_file_casereader_destroy (NULL, r);