From 41eb752809fd26cad0ea50cdc3356503f696cf45 Mon Sep 17 00:00:00 2001 From: stevenj Date: Sun, 4 Apr 2010 20:56:32 -0400 Subject: [PATCH] fix memory leak in nlopt_create darcs-hash:20100405005632-c8de0-ed92251161dc73aa8ac61a40e0cd2395f266c351.gz --- api/options.c | 1 + 1 file changed, 1 insertion(+) 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); } } -- 2.30.2