Solved memory leak on terminate job ctor
This commit is contained in:
parent
8285d78245
commit
766a8f40d6
2 changed files with 14 additions and 11 deletions
|
|
@ -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;
|
||||
}
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue