Fixed memory leak in examine command
authorJohn Darrington <john@darrington.wattle.id.au>
Sat, 25 May 2013 18:43:45 +0000 (20:43 +0200)
committerJohn Darrington <john@darrington.wattle.id.au>
Sun, 26 May 2013 04:41:32 +0000 (06:41 +0200)
src/language/stats/examine.c

index ea1b5dba19d3ba23fe83674605f41bca9dee621f..f4f49f329ffdf2b1f706d34ce9824e51515035c4 100644 (file)
@@ -2278,6 +2278,8 @@ cmd_examine (struct lexer *lexer, struct dataset *ds)
 
   caseproto_unref (examine.ex_proto);
 
+  for (i = 0; i < examine.n_iacts; ++i)
+    interaction_destroy (examine.iacts[i]);
   free (examine.ptiles);
   free (examine.dep_vars);
   pool_destroy (examine.pool);