]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fix memory leank in ADOLC test 5236/head
authorDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Thu, 12 Oct 2017 22:25:01 +0000 (00:25 +0200)
committerDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Thu, 12 Oct 2017 22:27:34 +0000 (00:27 +0200)
tests/adolc/basic_function_gradient_hessian_taped.cc

index cd3d179eac76e66e1a9b5c37bb1e6a1d7e9debd8..ac9ae396b7bc8714d32014a44ba1d332cf0df92c 100644 (file)
@@ -101,5 +101,7 @@ int main(void)
   delete[] H;
   H = nullptr;
 
+  delete[] xp;
+
   return 0;
 }

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.