Fix memory leak during dfa minimization.

Dfa minimization wasn't deleting the states it eliminated during the
minimization process, and hence leaking memory.
This commit is contained in:
John Johansen 2010-03-13 02:23:23 -08:00
parent 4ab92b62f5
commit 9efd526f6f

View file

@ -1715,7 +1715,9 @@ void DFA::minimize(dfaflags_t flags)
Trans::iterator j = trans.find(*i);
if (j != trans.end())
trans.erase(j);
State *s = *i;
states.erase(*i);
delete(s);
}
}