Skip to content
Snippets Groups Projects
  • Oliver Sander's avatar
    e4ffbb1f
    Fix memory leak in the CHOLMOD wrapper code · e4ffbb1f
    Oliver Sander authored
    When calling CHOLMOD to compute the Cholesky factor of a matrix,
    it was not tested whether such a factor already existed. As a
    consequence, if the solver was called twice in a row, the old
    factor would be lost to a memory leak.
    
    Fix this by explicitly deallocating the old Cholesky factor
    before asking CHOLMOD for a new one.
    e4ffbb1f
    History
    Fix memory leak in the CHOLMOD wrapper code
    Oliver Sander authored
    When calling CHOLMOD to compute the Cholesky factor of a matrix,
    it was not tested whether such a factor already existed. As a
    consequence, if the solver was called twice in a row, the old
    factor would be lost to a memory leak.
    
    Fix this by explicitly deallocating the old Cholesky factor
    before asking CHOLMOD for a new one.