[Clp] Memory leak after startFastDual
    Sebastian Theophil 
    stheophil at think-cell.com
       
    Mon Dec 28 12:36:30 EST 2009
    
    
  
Hi John,
there seems to be a memory leak caused by
OsiClpSolverInterface::startFastDual:
OsiClpSolverInterface solver;
...
{
    OsiClpSolverInterface solver2(solver);
    // make changes to solver2
    solver2.startFastDual(2);
    solver2.resolve();
} // memory leak
OsiClpSolverInterface::startFastDual passes a pointer to stuff_ into
ClpSimplex::startFastDual2 which creates a saveCosts_ array inside
stuff_ that is never freed unless stopFastDual is called. The
ClpNodeStuff dtor doesn't delete the array, but probably should. 
Regards
Sebastian
--
Sebastian Theophil . stheophil at think-cell.com
Software Engineer
 
think-cell Software GmbH . Chausseestr. 8/E . 10115 Berlin, Germany 
http://www.think-cell.com . phone +49 30 666473-10 . toll-free (US) +1 800 891 8091
Directors: Dr. Markus Hannebauer, Dr. Arno Schoedl . Amtsgericht Berlin-Charlottenburg, HRB 85229
    
    
More information about the Clp
mailing list