* src/tgbaalgos/replayrun.cc (replay_tgba_run): Fix a memory leak
if debug==false.
This commit is contained in:
parent
78be35142d
commit
ea9af1f1b0
2 changed files with 7 additions and 0 deletions
|
|
@ -1,5 +1,8 @@
|
||||||
2004-11-15 Alexandre Duret-Lutz <adl@src.lip6.fr>
|
2004-11-15 Alexandre Duret-Lutz <adl@src.lip6.fr>
|
||||||
|
|
||||||
|
* src/tgbaalgos/replayrun.cc (replay_tgba_run): Fix a memory leak
|
||||||
|
if debug==false.
|
||||||
|
|
||||||
* src/tgbaalgos/randomgraph.cc (random_graph): Do declare all the
|
* src/tgbaalgos/randomgraph.cc (random_graph): Do declare all the
|
||||||
acceptance conditions in the produced automaton, in case they are
|
acceptance conditions in the produced automaton, in case they are
|
||||||
not actually used.
|
not actually used.
|
||||||
|
|
|
||||||
|
|
@ -138,6 +138,10 @@ namespace spot
|
||||||
|
|
||||||
// browse the actual outgoing transitions
|
// browse the actual outgoing transitions
|
||||||
tgba_succ_iterator* j = a->succ_iter(s);
|
tgba_succ_iterator* j = a->succ_iter(s);
|
||||||
|
// When not debugging, S is not used as key in SEEN, so we can
|
||||||
|
// delete it right now.
|
||||||
|
if (!debug)
|
||||||
|
delete s;
|
||||||
for (j->first(); !j->done(); j->next())
|
for (j->first(); !j->done(); j->next())
|
||||||
{
|
{
|
||||||
if (j->current_condition() != label
|
if (j->current_condition() != label
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue