Solved memory leak on terminate job ctor

This commit is contained in:
Benjamin Bouvier 2012-07-18 14:02:39 +02:00
commit 766a8f40d6
2 changed files with 14 additions and 11 deletions

View file

@ -115,7 +115,7 @@ namespace eo
*/
EmptyJob( AssignmentAlgorithm& algo, int masterRank ) :
OneShotJob<void>( algo, masterRank, *(new DummyJobStore) )
// FIXME memory leak, meaningless but present
// the job store is deleted on destructor
{
// empty
}
@ -127,6 +127,7 @@ namespace eo
{
comm.send( idles[i], Channel::Commands, Message::Kill );
}
delete & this->store;
}
};