summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--findutils/grep.c4
-rw-r--r--grep.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/findutils/grep.c b/findutils/grep.c
index fb7df24..03cc9f8 100644
--- a/findutils/grep.c
+++ b/findutils/grep.c
@@ -221,8 +221,8 @@ static void destroy_regexes()
/* destroy all the elments in the array */
while (--nregexes >= 0) {
- regfree(regexes[nregexes]);
- free(regexes[nregexes]);
+ regfree(&regexes[nregexes]);
+ free(&regexes[nregexes]);
}
}
#endif
diff --git a/grep.c b/grep.c
index fb7df24..03cc9f8 100644
--- a/grep.c
+++ b/grep.c
@@ -221,8 +221,8 @@ static void destroy_regexes()
/* destroy all the elments in the array */
while (--nregexes >= 0) {
- regfree(regexes[nregexes]);
- free(regexes[nregexes]);
+ regfree(&regexes[nregexes]);
+ free(&regexes[nregexes]);
}
}
#endif