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; }