chiark / gitweb /
fix memory leak in nlopt_create
authorstevenj <stevenj@alum.mit.edu>
Mon, 5 Apr 2010 00:56:32 +0000 (20:56 -0400)
committerstevenj <stevenj@alum.mit.edu>
Mon, 5 Apr 2010 00:56:32 +0000 (20:56 -0400)
darcs-hash:20100405005632-c8de0-ed92251161dc73aa8ac61a40e0cd2395f266c351.gz

api/options.c

index 18cdbd427f44dad37e26926c1719fbff605763d2..6474c44a373b2e26d4783e57a2170656308f3263 100644 (file)
@@ -42,6 +42,7 @@ void nlopt_destroy(nlopt_opt opt)
          free(opt->h);
          nlopt_destroy(opt->local_opt);
          free(opt->dx);
+         free(opt);
      }
 }