From 8396e95f8f042b49bef6cc4ccb7fac05b6b85244 Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Fri, 12 Jul 2013 19:47:30 -0700 Subject: [PATCH] model-checker: Fix memory leak in finish_mc(). This memory leak was visible only when the model checker was configured with a particular path to follow. --- src/libpspp/model-checker.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libpspp/model-checker.c b/src/libpspp/model-checker.c index e0a0f71a62..02ae9e733b 100644 --- a/src/libpspp/model-checker.c +++ b/src/libpspp/model-checker.c @@ -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); } -- 2.30.2