model-checker: Fix memory leak in finish_mc().
authorBen Pfaff <blp@cs.stanford.edu>
Sat, 13 Jul 2013 02:47:30 +0000 (19:47 -0700)
committerBen Pfaff <blp@cs.stanford.edu>
Sat, 13 Jul 2013 03:40:53 +0000 (20:40 -0700)
This memory leak was visible only when the model checker was configured
with a particular path to follow.

src/libpspp/model-checker.c

index e0a0f71a62706891145c01966d4dacff94530d53..02ae9e733b268cc4234787bb5f760df36aadf071 100644 (file)
@@ -1,5 +1,5 @@
 /* PSPP - a program for statistical analysis.
-   Copyright (C) 2007, 2009, 2010, 2011 Free Software Foundation, Inc.
+   Copyright (C) 2007, 2009, 2010, 2011, 2013 Free Software Foundation, Inc.
 
    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
@@ -1743,7 +1743,7 @@ finish_mc (struct mc *mc)
   /* Free memory. */
   mc_path_destroy (&mc->path);
   ds_destroy (&mc->path_string);
-  free (mc->options);
+  mc_options_destroy (mc->options);
   free (mc->queue);
   free (mc->hash);
 }