Commit ea9af1f1 authored by Alexandre Duret-Lutz's avatar Alexandre Duret-Lutz
Browse files

* src/tgbaalgos/replayrun.cc (replay_tgba_run): Fix a memory leak

if debug==false.
parent 78be3514
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
acceptance conditions in the produced automaton, in case they are
not actually used.
......
......@@ -138,6 +138,10 @@ namespace spot
// browse the actual outgoing transitions
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())
{
if (j->current_condition() != label
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment