Ignore:
Timestamp:
Jul 14, 2007 6:35:28 PM (12 years ago)
Author:
forrest
Message:

to eliminate memory leak

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Clp/src/ClpPresolve.cpp

    r1034 r1051  
    4848  originalRow_(NULL),
    4949  rowObjective_(NULL),
    50   paction_(0),
     50  paction_(0),   
    5151  ncols_(0),
    5252  nrows_(0),
     
    6969ClpPresolve::destroyPresolve()
    7070{
    71  const CoinPresolveAction *paction = paction_;
     71  const CoinPresolveAction *paction = paction_;
    7272  while (paction) {
    7373    const CoinPresolveAction *next = paction->next;
     
    17061706          if (!result&&totalPasses>0) {
    17071707            result = -1; // round again
     1708            const CoinPresolveAction *paction = paction_;
     1709            while (paction) {
     1710              const CoinPresolveAction *next = paction->next;
     1711              delete paction;
     1712              paction = next;
     1713            }
     1714            paction_=NULL;
    17081715          }
    17091716        }
Note: See TracChangeset for help on using the changeset viewer.