Fix a memory leak in Cou99 statistics.

* src/tgbaalgos/gtec/ce.cc (couvreur99_check_result::acss_states):
Delete the iterator after using it.
* src/tgbatest/emptchkr.test: Run 'randtgba -z' with valgrind too.
This commit is contained in:
Alexandre Duret-Lutz 2010-01-21 11:57:44 +01:00
parent 99884e8e0f
commit 79cb3ff512
3 changed files with 17 additions and 1 deletions

View file

@ -1,6 +1,8 @@
// Copyright (C) 2004, 2005 Laboratoire d'Informatique de Paris 6 (LIP6),
// département Systèmes Répartis Coopératifs (SRC), Université Pierre
// et Marie Curie.
// Copyright (C) 2010 Laboratoire de Recherche et Développement de
// l'Epita (LRDE).
//
// This file is part of Spot, a model checking library.
//
@ -92,6 +94,7 @@ namespace spot
for (i->first(); !i->done(); i->next())
if (i->get_index() >= scc_root)
++count;
delete i;
return count;
}