Plugged some memory leaks.
authorJohn Darrington <john@darrington.wattle.id.au>
Mon, 27 Aug 2007 05:05:54 +0000 (05:05 +0000)
committerJohn Darrington <john@darrington.wattle.id.au>
Mon, 27 Aug 2007 05:05:54 +0000 (05:05 +0000)
src/language/dictionary/vector.c
src/language/stats/t-test.q
src/output/output.c

index a623a349e2442a1b7bd23a714a9ccf2bd4861ef5..dd5c0cf47befaab278b2f292cc653d2154d888d1 100644 (file)
@@ -77,7 +77,7 @@ cmd_vector (struct lexer *lexer, struct dataset *ds)
           if (vector_cnt == vector_cap)
             vectors = pool_2nrealloc (pool,
                                        vectors, &vector_cap, sizeof *vectors);
-          vectors[vector_cnt++] = xstrdup (lex_tokid (lexer));
+          vectors[vector_cnt++] = pool_strdup (pool, lex_tokid (lexer));
 
          lex_get (lexer);
          lex_match (lexer, ',');
index 9691578e7fdd6835e1cd980435f7af6903b3584b..a1665d53adc800b1092c23d5894e4d01112eb242 100644 (file)
@@ -1849,6 +1849,8 @@ calculate(struct cmd_t_test *cmd,
       trbox_populate(&test_results_box,cmd);
       trbox_finalize(&test_results_box);
     }
+
+  taint_destroy (taint);
 }
 
 short which_group(const struct group_statistics *g,
index 9527c46f210e5994624964c4f7cdc2cc9318463f..5a24d89547a8ea054eb5dd3b5721a7dca761fe0b 100644 (file)
@@ -435,6 +435,7 @@ void
 outp_done (void)
 {
   struct outp_driver_class_list *n = outp_class_list ;
+  outp_configure_clear ();
   destroy_list (&outp_driver_list);
 
   while (n)