From d327d2a08f12821f147dece7a9fb9e6d46c6dfad Mon Sep 17 00:00:00 2001 From: Sven Verdoolaege Date: Mon, 16 Jan 2006 19:33:42 +0100 Subject: [PATCH] sol_simplify: fix memory leak --- source/sol.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/sol.c b/source/sol.c index c73b0c9..d1e6311 100644 --- a/source/sol.c +++ b/source/sol.c @@ -304,7 +304,8 @@ void sol_simplify(int i) sol_simplify(j); if(sol_space[j].flags == Nil && sol_space[k].flags == Nil) { sol_space[i].flags = Nil; - if(k >= sol_free - 1) sol_free = i+1; + if (k >= sol_free - 1) + sol_reset(i+1); else for(l = i+1; l<=k; l++) sol_space[l].flags = Free; } } -- 2.11.4.GIT