Fix two memory leak reported by Sonali Dutta.
* src/tgbatest/ltl2tgba.cc: Calling tgbatest/ltl2tgba -M -O (which makes no sense, but that is no reason) used the "minimized" variable for two automata, overwriting one. * wrap/python/spot.i: The python bindings did not know about sba_explicit automata, causing memory leaks, and complaints from the bdd_dict.
This commit is contained in:
parent
30e0541268
commit
c892599494
2 changed files with 28 additions and 2 deletions
|
|
@ -1167,10 +1167,11 @@ main(int argc, char** argv)
|
|||
}
|
||||
}
|
||||
|
||||
const spot::tgba* monitor = 0;
|
||||
if (opt_monitor)
|
||||
{
|
||||
tm.start("Monitor minimization");
|
||||
minimized = a = minimize_monitor(a);
|
||||
monitor = a = minimize_monitor(a);
|
||||
tm.stop("Monitor minimization");
|
||||
assume_sba = false; // All states are accepting, so double
|
||||
// circles in the dot output are
|
||||
|
|
@ -1620,6 +1621,7 @@ main(int argc, char** argv)
|
|||
delete product_to_free;
|
||||
delete system;
|
||||
delete expl;
|
||||
delete monitor;
|
||||
delete minimized;
|
||||
delete degeneralized;
|
||||
delete aut_scc;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue