diff --git a/src/nfa/operations.cc b/src/nfa/operations.cc index 3de3dad65..8e2594c67 100644 --- a/src/nfa/operations.cc +++ b/src/nfa/operations.cc @@ -228,8 +228,10 @@ namespace { covering_states.push_back(mata::utils::OrdVector()); covering_indexes.push_back(mata::utils::OrdVector()); - if (aut.delta.empty()) + if (aut.delta.empty()){ + delete subset_map; return result; + } using Iterator = mata::utils::OrdVector::const_iterator; SynchronizedExistentialSymbolPostIterator synchronized_iterator;