diff options
-rw-r--r-- | findutils/grep.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/findutils/grep.c b/findutils/grep.c index 48329e135..b98b724ac 100644 --- a/findutils/grep.c +++ b/findutils/grep.c | |||
@@ -224,8 +224,8 @@ static void destroy_regexes() | |||
224 | /* destroy all the elments in the array */ | 224 | /* destroy all the elments in the array */ |
225 | while (--nregexes >= 0) { | 225 | while (--nregexes >= 0) { |
226 | regfree(®exes[nregexes]); | 226 | regfree(®exes[nregexes]); |
227 | free(®exes[nregexes]); | ||
228 | } | 227 | } |
228 | free(regexes); | ||
229 | } | 229 | } |
230 | #endif | 230 | #endif |
231 | 231 | ||