ltsmin: catch exceptions by reference

* spot/ltsmin/ltsmin.cc, tests/ltsmin/modelcheck.cc: Here.
This commit is contained in:
Alexandre Duret-Lutz 2017-06-20 16:09:56 +02:00
parent 05abed6d2f
commit 0a21a4c87e
2 changed files with 4 additions and 4 deletions

View file

@ -1112,7 +1112,7 @@ namespace spot
{
convert_aps(to_observe, iface, dict, dead, *ps);
}
catch (std::runtime_error)
catch (const std::runtime_error&)
{
delete ps;
dict->unregister_all_my_variables(iface.get());