Fixup CLEANUP behavior
authorEric Andersen <andersen@codepoet.org>
Mon, 19 Nov 2001 10:36:20 +0000 (10:36 -0000)
committerEric Andersen <andersen@codepoet.org>
Mon, 19 Nov 2001 10:36:20 +0000 (10:36 -0000)
findutils/grep.c

index 48329e13592f69f1c2098182369ffc9de21eed42..b98b724ac8ca718b33ffc4f9a627e413fc6dd9d8 100644 (file)
@@ -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