Fix leaks in ODS reader
authorJohn Darrington <john@darrington.wattle.id.au>
Sun, 29 Jul 2012 09:22:13 +0000 (11:22 +0200)
committerJohn Darrington <john@darrington.wattle.id.au>
Sun, 29 Jul 2012 09:22:13 +0000 (11:22 +0200)
src/data/ods-reader.c

index 9c165f9c92e30bd305a233f7b8bf4e4e57e2a50d..240c016898b010270b80e30125bfba2889862156 100644 (file)
@@ -592,6 +592,10 @@ ods_open_reader (struct spreadsheet_read_info *gri, struct dictionary **dict)
 
   free (var_spec);
 
+  dict_destroy (r->dict);
+  ods_file_casereader_destroy (zreader, r);
+
+
   return NULL;
 }