Skip to content

Commit

Permalink
* Patch two leaked pointers that are the root cause of multiple other…
Browse files Browse the repository at this point in the history
… leaks. (#685)
  • Loading branch information
tepperly authored May 8, 2024
1 parent ab54728 commit f338053
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/Optimization/hiopKKTLinSys.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -620,7 +620,9 @@ class hiopMatVecKKTFullOpr : public hiopLinearOperator
virtual ~hiopMatVecKKTFullOpr()
{
delete resid_;
delete dir_;
delete dir_;
delete dir_cv_;
delete res_cv_;
};

/** y = KKT * x */
Expand Down Expand Up @@ -673,7 +675,9 @@ class hiopPrecondKKTOpr : public hiopLinearOperator
virtual ~hiopPrecondKKTOpr()
{
delete resid_;
delete dir_;
delete dir_;
delete dir_cv_;
delete res_cv_;
};

/** y = inv(Preconditioner) * x = Preconditioner/x */
Expand Down

0 comments on commit f338053

Please sign in to comment.