Changeset 1637 for stable


Ignore:
Timestamp:
Apr 14, 2011 11:16:56 AM (8 years ago)
Author:
forrest
Message:

get rid of memory leak

File:
1 edited

Legend:

Unmodified
Added
Removed
  • stable/2.6/Cbc/src/CbcSolver.cpp

    r1627 r1637  
    59745974                                saveSolver->setColSolution(model_.bestSolution());
    59755975                                babModel_->assignSolver(saveSolver);
     5976                                saveSolver=NULL;
    59765977                                babModel_->setMinimizationObjValue(model_.getMinimizationObjValue());
    59775978                                memcpy(bestSolution, babModel_->solver()->getColSolution(), n*sizeof(double));
     
    60366037                                }
    60376038#endif
     6039                                delete saveSolver;
    60386040                                delete [] bestSolution;
    60396041                                std::string statusName[] = {"", "Stopped on ", "Run abandoned", "", "", "User ctrl-c"};
Note: See TracChangeset for help on using the changeset viewer.