Commit 96af40d7 authored by Ken Edmundson's avatar Ken Edmundson
Browse files

another fix to cholmod memory problem; impacts application jigsaw; references #2189

git-svn-id: http://subversion.wr.usgs.gov/repos/prog/isis3/trunk@6034 41f8697f-d340-4b68-9986-7bafba869bb8
parent a4c4a79a
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -1149,9 +1149,9 @@ namespace Isis {
      if (!m_bConverged)
        m_cumProRes->initialize(101);

      // if we're still going, release cholmod_factor (if we don't, memory leaks will occur),
      // if we're using CHOLMOD and still going, release cholmod_factor (if we don't, memory leaks will occur),
      // otherwise we need it for error propagation
      if (!m_bDeltack) {
      if ( m_decompositionMethod == CHOLMOD ) {
        if (!m_bConverged || (m_bConverged && !m_bErrorPropagation))
          cholmod_free_factor(&m_L, &m_cm);
      }