From effee9ffabe12fa7700028889231724fcea341a7 Mon Sep 17 00:00:00 2001 From: george <george@ac1d8469-bf42-47a9-8791-bf33cf982152> Date: Mon, 7 Dec 2009 17:03:59 +0000 Subject: [PATCH] removed more leaks git-svn-id: https://www.dynare.org/svn/dynare/trunk@3205 ac1d8469-bf42-47a9-8791-bf33cf982152 --- mex/sources/k_order_perturbation/k_ord_dynare.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/mex/sources/k_order_perturbation/k_ord_dynare.cpp b/mex/sources/k_order_perturbation/k_ord_dynare.cpp index 10e34651cd..e8bdb3c580 100644 --- a/mex/sources/k_order_perturbation/k_ord_dynare.cpp +++ b/mex/sources/k_order_perturbation/k_ord_dynare.cpp @@ -94,7 +94,13 @@ KordpDynare::~KordpDynare() if (denl) delete denl; if (JacobianIndices) - delete JacobianIndices; + delete JacobianIndices; + if (varOrder) + delete varOrder; + if (ll_Incidence) + delete ll_Incidence; + if (NNZD) + delete NNZD; } /** This clears the container of model derivatives and initializes it -- GitLab