sbase

suckless unix tools
git clone git://git.2f30.org/sbase
Log | Files | Refs | README | LICENSE

commit a3e46897430dd1037f280c8e650dfc08f0e4f822
parent af66a5924ecf94382b3c9cf1a7d8cf8005dc5cf0
Author: sin <sin@2f30.org>
Date:   Tue, 16 Dec 2014 19:43:38 +0000

grep: Don't bother free-ing the pattern list

Diffstat:
Mgrep.c | 8--------
1 file changed, 0 insertions(+), 8 deletions(-)

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