summaryrefslogtreecommitdiff
path: root/findutils
diff options
context:
space:
mode:
Diffstat (limited to 'findutils')
-rw-r--r--findutils/grep.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/findutils/grep.c b/findutils/grep.c
index 48329e1..b98b724 100644
--- a/findutils/grep.c
+++ b/findutils/grep.c
@@ -224,8 +224,8 @@ static void destroy_regexes()
/* destroy all the elments in the array */
while (--nregexes >= 0) {
regfree(&regexes[nregexes]);
- free(&regexes[nregexes]);
}
+ free(regexes);
}
#endif