grep: Don't bother free-ing the pattern list
This commit is contained in:
parent
af66a5924e
commit
a3e4689743
8
grep.c
8
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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user