deadlock: fix memory leak

Do not forget to recycle iterator, otherwise the todo
stack will be trashed without cleaning iterators.

* spot/mc/deadlock.hh: Here.
This commit is contained in:
Etienne Renault 2018-07-11 14:29:44 +00:00
parent 23edf52dd5
commit 2dd2d44907

View file

@ -106,6 +106,11 @@ namespace spot
virtual ~swarmed_deadlock() virtual ~swarmed_deadlock()
{ {
while (!todo_.empty())
{
sys_.recycle(todo_.back().it, tid_);
todo_.pop_back();
}
} }
void setup() void setup()