From 1ad455c6dae63b97ae60a9c3d05a45ea9c01e94e Mon Sep 17 00:00:00 2001 From: Steve Beattie Date: Tue, 13 Jul 2010 16:36:47 -0700 Subject: [PATCH] Merge r1385: Fix memory leak during dfa minimization. Nominated-by: Steve Beattie Acked-By: Marc Deslauriers --- parser/libapparmor_re/regexp.y | 2 ++ 1 file changed, 2 insertions(+) diff --git a/parser/libapparmor_re/regexp.y b/parser/libapparmor_re/regexp.y index 159f6cf91..89f97ab4c 100644 --- a/parser/libapparmor_re/regexp.y +++ b/parser/libapparmor_re/regexp.y @@ -1722,7 +1722,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); } }