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

This commit is contained in:
sin 2014-12-16 19:43:38 +00:00
parent af66a5924e
commit a3e4689743
1 changed files with 0 additions and 8 deletions

8
grep.c
View File

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