bin: plug several memory leaks
* src/bin/ltl2tgba.cc, src/bin/ltl2tgta.cc: Destroy the translated formulas. * src/bin/ltlcheck.cc, src/bin/ltlfilt.cc: Free the unicity table on exit.
This commit is contained in:
parent
9f1d369563
commit
d9ceb4adc4
4 changed files with 22 additions and 6 deletions
|
|
@ -340,6 +340,13 @@ namespace
|
|||
spot::ltl::ltl_simplifier& simpl;
|
||||
fset_t unique_set;
|
||||
|
||||
~ltl_processor()
|
||||
{
|
||||
fset_t::iterator i = unique_set.begin();
|
||||
while (i != unique_set.end())
|
||||
(*i++)->destroy();
|
||||
}
|
||||
|
||||
ltl_processor(spot::ltl::ltl_simplifier& simpl)
|
||||
: simpl(simpl)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue