diff options
author | Johan Walles <johan.walles@gmail.com> | 2009-12-23 11:32:16 +0100 |
---|---|---|
committer | Paolo Bonzini <bonzini@gnu.org> | 2009-12-23 11:32:16 +0100 |
commit | d09b0dd0a548f861ff3defbbc8b7f48343597ae1 (patch) | |
tree | fe2edea7de8d11e9c636a86aff87aceb18e972c6 /src | |
parent | 62b155de28da2bf54ee63eb56d8cde42f21f179d (diff) | |
download | grep-d09b0dd0a548f861ff3defbbc8b7f48343597ae1.tar.gz |
Decrease epsclosure memory usage
Fixes bug 23321.
* src/dfa.c (epsclosure): Make visited an array of char.
Diffstat (limited to 'src')
-rw-r--r-- | src/dfa.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1569,10 +1569,10 @@ static void epsclosure (position_set *s, struct dfa const *d) { int i, j; - int *visited; + char *visited; position p, old; - CALLOC(visited, int, d->tindex); + CALLOC(visited, char, d->tindex); for (i = 0; i < s->nelem; ++i) if (d->tokens[s->elems[i].index] >= NOTCHAR |