Fixed memory leaks.
authorJohn Darrington <john@darrington.wattle.id.au>
Thu, 8 Nov 2007 21:25:39 +0000 (21:25 +0000)
committerJohn Darrington <john@darrington.wattle.id.au>
Thu, 8 Nov 2007 21:25:39 +0000 (21:25 +0000)
src/data/datasheet.c
src/data/gnumeric-reader.c

index 842e9c3adf426ffbfccec1405ed46520b088fa6d..da85d963c17dfb166ff93ab1e7882f1ee8105d42 100644 (file)
@@ -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))
index f4292a06590e9c3ad624415cce310b2c71065ce5..cc8d335b3cff0dcf9bb8c571d0a1f3e8eb8e508c 100644 (file)
@@ -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);