From: Norihiro Tanaka Date: Wed, 18 Jan 2017 22:44:13 +0000 (+0900) Subject: dfa: fix memory leak in parse X-Git-Tag: v1.0~6380 X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=e0e362e7b14ea938be1a157ff64d0be15350dbc1;p=gnulib.git dfa: fix memory leak in parse Problem reported by Arnold Robbins in: http://lists.gnu.org/archive/html/bug-grep/2017-01/msg00006.html * lib/dfa.c (epsclosure): Do it. --- diff --git a/lib/dfa.c b/lib/dfa.c index f6c3017014..5bac288db9 100644 --- a/lib/dfa.c +++ b/lib/dfa.c @@ -2262,6 +2262,7 @@ epsclosure (position_set *initial, struct dfa const *d) replace (initial, i, &d->follows[i], constraint, &tmp); } + free (tmp.elems); } /* Returns the set of contexts for which there is at least one