Fix a memory leak in randltl.
* src/ltltest/randltl.cc: Free the atomic properties from AP before exit.
This commit is contained in:
parent
edd4b2b532
commit
058bb83c6d
2 changed files with 16 additions and 1 deletions
|
|
@ -1,3 +1,10 @@
|
|||
2009-09-07 Alexandre Duret-Lutz <adl@lrde.epita.fr>
|
||||
|
||||
Fix a memory leak in randltl.
|
||||
|
||||
* src/ltltest/randltl.cc: Free the atomic properties from AP
|
||||
before exit.
|
||||
|
||||
2009-09-04 Damien Lefortier <dam@lrde.epita.fr>
|
||||
|
||||
Add an algorithm (from Couvreur) working on BDDs to reduce the
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// Copyright (C) 2003, 2005, 2008 Laboratoire d'Informatique de Paris 6 (LIP6),
|
||||
// Copyright (C) 2003, 2005, 2008, 2009 Laboratoire d'Informatique de Paris 6 (LIP6),
|
||||
// département Systèmes Répartis Coopératifs (SRC), Université Pierre
|
||||
// et Marie Curie.
|
||||
//
|
||||
|
|
@ -217,5 +217,13 @@ main(int argc, char** argv)
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
spot::ltl::atomic_prop_set::const_iterator i = ap->begin();
|
||||
while (i != ap->end())
|
||||
{
|
||||
spot::ltl::atomic_prop_set::const_iterator j = i;
|
||||
++i;
|
||||
spot::ltl::destroy(*j);
|
||||
}
|
||||
delete ap;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue