From adc535e8709c7e6746d71fdf185ed1d8d753b748 Mon Sep 17 00:00:00 2001 From: Amaury Johnan <amjohnen@gmail.com> Date: Thu, 28 Aug 2014 12:39:28 +0000 Subject: [PATCH] fix memory leak --- Numeric/MetricBasis.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Numeric/MetricBasis.cpp b/Numeric/MetricBasis.cpp index 9d293c5090..9b7c6e8fa8 100644 --- a/Numeric/MetricBasis.cpp +++ b/Numeric/MetricBasis.cpp @@ -225,6 +225,8 @@ double MetricBasis::getBoundMinR(MElement *el) _computeRmin(*metCoeff, *jac, RminLag, RminBez); if (RminLag-RminBez < MetricBasis::_tol) { + delete jac; + delete metCoeff; return RminBez; } else { @@ -970,7 +972,6 @@ int MetricBasis::_paramOnPlane(const fullMatrix<double> &nodes3d, if (i == nodes3d.size1()) { nodes2d.setAsProxy(const_cast<double*>(nodes3d.getDataPtr()), nodes3d.size1(), 2); - Msg::Info("Was on xy-plane"); return 0; } -- GitLab