Yet more memory leaks.
authorJohn Darrington <john@darrington.wattle.id.au>
Tue, 28 Aug 2007 01:00:04 +0000 (01:00 +0000)
committerJohn Darrington <john@darrington.wattle.id.au>
Tue, 28 Aug 2007 01:00:04 +0000 (01:00 +0000)
src/language/stats/chisquare.c
src/language/utilities/title.c

index 6b0b0567257bd80d5b812a96438464e8fc4bf75f..1b8392724db880a3fdae76187a9e4b2a08ccbe57 100644 (file)
@@ -194,6 +194,8 @@ create_variable_frequency_table (const struct dictionary *dict,
          test->n_expected, n_cells,
          var_get_name (var)
          );
+      hsh_destroy (*freq_hash);
+      *freq_hash = NULL;
       return NULL;
     }
 
index 85c0bdcc0584b2246a84790e2f0dea9cf77ba70d..982c626e091570f76bed81abfb8feb0215c4d939 100644 (file)
@@ -130,6 +130,7 @@ cmd_document (struct lexer *lexer, struct dataset *ds)
   while (!end_dot);
 
   add_document_trailer (dict);
+  ds_destroy (&line);
 
   return CMD_SUCCESS;
 }