Free the cmd after it's finished.
authorJohn Darrington <john@darrington.wattle.id.au>
Sat, 22 Sep 2007 01:04:38 +0000 (01:04 +0000)
committerJohn Darrington <john@darrington.wattle.id.au>
Sat, 22 Sep 2007 01:04:38 +0000 (01:04 +0000)
src/language/stats/regression.q

index d923a35b00770ed3e09c04f9cc5cffcf8834c98b..7b02e4b9dcfdaed3dc669efdbc5129071cc28d97 100644 (file)
@@ -968,6 +968,8 @@ cmd_regression (struct lexer *lexer, struct dataset *ds)
   subcommand_save (ds, cmd.sbc_save, models);
   free (v_variables);
   free (models);
+  free_regression (&cmd);
+
   return ok ? CMD_SUCCESS : CMD_FAILURE;
 }