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:
parent
23edf52dd5
commit
2dd2d44907
1 changed files with 5 additions and 0 deletions
|
|
@ -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()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue