From 6ebedd5eb933cd65d8f5332da31636bea7509765 Mon Sep 17 00:00:00 2001 From: AaronWebster Date: Thu, 28 Jan 2016 20:53:43 -0800 Subject: [PATCH] Fixes memory leak in auglag/auglag.c Fixes a memory leak in auglag/auglag.c where the working space xcur wasn't being `free`d under certain conditions. --- auglag/auglag.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/auglag/auglag.c b/auglag/auglag.c index f43934e..f18cfec 100644 --- a/auglag/auglag.c +++ b/auglag/auglag.c @@ -280,7 +280,7 @@ nlopt_result auglag_minimize(int n, nlopt_func f, void *f_data, condition seems not too different from requiring feasibility, especially now that the user can provide constraint-specific tolerances analogous to epsilon. */ - if (ICM == 0) return NLOPT_FTOL_REACHED; + if (ICM == 0) {ret = NLOPT_FTOL_REACHED; break;} } while (1); done: -- 2.30.2