commit a3e46897430dd1037f280c8e650dfc08f0e4f822
Author: sin <[email protected]>
Date: Tue Dec 16 19:43:38 2014 +0000
grep: Don't bother free-ing the pattern list
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;
}