ltl_to_tgba_fm: fix a memory leak on abort

This issue surfaced in twacube.test after the previous patches.

* spot/twaalgos/ltl2tgba_fm.cc: Release the formula namer on abort.
* NEWS: Mention the bug.
This commit is contained in:
Alexandre Duret-Lutz 2022-11-15 17:50:45 +01:00
parent 843c4cdb91
commit c2a3f2941d
2 changed files with 5 additions and 0 deletions

View file

@ -2031,6 +2031,7 @@ namespace spot
{
if (aborter && aborter->too_large(a))
{
a->release_formula_namer(namer, false);
if (!simplifier)
delete s;
return nullptr;