removed more leaks in calcDerivatives

git-svn-id: https://www.dynare.org/svn/dynare/trunk@3204 ac1d8469-bf42-47a9-8791-bf33cf982152
time-shift
george 2009-12-07 12:48:18 +00:00
parent 12d7abab24
commit 5c75c9aaee
1 changed files with 3 additions and 0 deletions

View File

@ -93,6 +93,8 @@ KordpDynare::~KordpDynare()
delete dsnl;
if (denl)
delete denl;
if (JacobianIndices)
delete JacobianIndices;
}
/** This clears the container of model derivatives and initializes it
@ -180,6 +182,7 @@ KordpDynare::calcDerivatives(const Vector &yy, const Vector &xx) throw (DynareEx
populateDerivativesContainer(g3, 3, JacobianIndices);
delete g3;
}
delete llxYYp;
}
void