From a3e46897430dd1037f280c8e650dfc08f0e4f822 Mon Sep 17 00:00:00 2001 From: sin Date: Tue, 16 Dec 2014 19:43:38 +0000 Subject: [PATCH] grep: Don't bother free-ing the pattern list --- grep.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/grep.c b/grep.c index c30174d..86b8ca5 100644 --- a/grep.c +++ b/grep.c @@ -139,14 +139,6 @@ main(int argc, char *argv[]) fclose(fp); } } - while (!SLIST_EMPTY(&phead)) { - pnode = SLIST_FIRST(&phead); - SLIST_REMOVE_HEAD(&phead, entry); - if (!Fflag) - regfree(&pnode->preg); - free(pnode->pattern); - free(pnode); - } return match; }