From: Eric Andersen Date: Mon, 19 Nov 2001 10:36:20 +0000 (-0000) Subject: Fixup CLEANUP behavior X-Git-Tag: 0_60_2~15 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=43626d7671cf1b4c7adac777d421ad784a400422;p=oweals%2Fbusybox.git Fixup CLEANUP behavior --- 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() /* destroy all the elments in the array */ while (--nregexes >= 0) { regfree(®exes[nregexes]); - free(®exes[nregexes]); } + free(regexes); } #endif