[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Getfem-commits] [getfem-commits] branch master updated: Fix memory leak
From: |
Konstantinos Poulios |
Subject: |
[Getfem-commits] [getfem-commits] branch master updated: Fix memory leak due to lack of base class virtual destructor |
Date: |
Fri, 08 Jan 2021 09:10:56 -0500 |
This is an automated email from the git hooks/post-receive script.
logari81 pushed a commit to branch master
in repository getfem.
The following commit(s) were added to refs/heads/master by this push:
new 36bcd58 Fix memory leak due to lack of base class virtual destructor
36bcd58 is described below
commit 36bcd583e022f5f63345d6e6962c1ed76052d45a
Author: Konstantinos Poulios <logari81@gmail.com>
AuthorDate: Fri Jan 8 15:10:16 2021 +0100
Fix memory leak due to lack of base class virtual destructor
---
src/getfem_model_solvers.cc | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/getfem_model_solvers.cc b/src/getfem_model_solvers.cc
index fd00044..fe11ca7 100644
--- a/src/getfem_model_solvers.cc
+++ b/src/getfem_model_solvers.cc
@@ -70,8 +70,8 @@ namespace getfem {
}
pb_base(PLSOLVER linsolv, const MATRIX &K_, VECTOR &rhs_)
- : linear_solver(linsolv), K(K_), rhs(rhs_), state(gmm::vect_size(rhs_))
- {}
+ : linear_solver(linsolv), K(K_), rhs(rhs_), state(gmm::vect_size(rhs_))
{}
+ virtual ~pb_base() {}
};
/* ***************************************************************** */
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Getfem-commits] [getfem-commits] branch master updated: Fix memory leak due to lack of base class virtual destructor,
Konstantinos Poulios <=