mirror of
https://gitlab.com/apparmor/apparmor.git
synced 2025-03-04 08:24:42 +01:00
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:
parent
4ab92b62f5
commit
9efd526f6f
1 changed files with 2 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue