Skip to content

Commit

Permalink
Fix memory leak, forgotten freeing of the memory
Browse files Browse the repository at this point in the history
  • Loading branch information
notValord committed Apr 19, 2024
1 parent f84683e commit a6d772a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/nfa/operations.cc
Original file line number Diff line number Diff line change
Expand Up @@ -228,8 +228,10 @@ namespace {
covering_states.push_back(mata::utils::OrdVector<State>());
covering_indexes.push_back(mata::utils::OrdVector<State>());

if (aut.delta.empty())
if (aut.delta.empty()){
delete subset_map;
return result;
}

using Iterator = mata::utils::OrdVector<SymbolPost>::const_iterator;
SynchronizedExistentialSymbolPostIterator synchronized_iterator;
Expand Down

0 comments on commit a6d772a

Please sign in to comment.