This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Memory leaks on Linux (wrong initialisation)

Tags: memory leak, initialisation memory leak, initialisation memory leak, initialisation
(comma "," separated)
User avatar
ggael
Moderator
Posts
3447
Karma
19
OS
I think POISSON_M is not properly initialized.
alkamid
Registered Member
Posts
15
Karma
0
Of course it was not! I added:
Code: Select all
    POISSON_M.setZero();

after
Code: Select all
    MatrixXd           POISSON_M  (Eigen_dim,Eigen_dim)         ;

Now valgrind comes out green.

Thanks a lot ggael!


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], Yahoo [Bot]