From: AaronWebster Date: Fri, 29 Jan 2016 04:53:43 +0000 (-0800) Subject: Fixes memory leak in auglag/auglag.c X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=6ebedd5eb933cd65d8f5332da31636bea7509765;p=nlopt.git 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. --- 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: