From: stevenj Date: Mon, 5 Apr 2010 00:56:32 +0000 (-0400) Subject: fix memory leak in nlopt_create X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=41eb752809fd26cad0ea50cdc3356503f696cf45;p=nlopt.git fix memory leak in nlopt_create darcs-hash:20100405005632-c8de0-ed92251161dc73aa8ac61a40e0cd2395f266c351.gz --- diff --git a/api/options.c b/api/options.c index 18cdbd4..6474c44 100644 --- a/api/options.c +++ b/api/options.c @@ -42,6 +42,7 @@ void nlopt_destroy(nlopt_opt opt) free(opt->h); nlopt_destroy(opt->local_opt); free(opt->dx); + free(opt); } }