aboutsummaryrefslogtreecommitdiff
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 fb7df24cf..03cc9f836 100644
--- a/findutils/grep.c
+++ b/findutils/grep.c
@@ -221,8 +221,8 @@ static void destroy_regexes()
221 221
222 /* destroy all the elments in the array */ 222 /* destroy all the elments in the array */
223 while (--nregexes >= 0) { 223 while (--nregexes >= 0) {
224 regfree(regexes[nregexes]); 224 regfree(&regexes[nregexes]);
225 free(regexes[nregexes]); 225 free(&regexes[nregexes]);
226 } 226 }
227} 227}
228#endif 228#endif
diff --git a/grep.c b/grep.c
index fb7df24cf..03cc9f836 100644
--- a/grep.c
+++ b/grep.c
@@ -221,8 +221,8 @@ static void destroy_regexes()
221 221
222 /* destroy all the elments in the array */ 222 /* destroy all the elments in the array */
223 while (--nregexes >= 0) { 223 while (--nregexes >= 0) {
224 regfree(regexes[nregexes]); 224 regfree(&regexes[nregexes]);
225 free(regexes[nregexes]); 225 free(&regexes[nregexes]);
226 } 226 }
227} 227}
228#endif 228#endif