Pedro F. Giffuni f3f50de623 grep: fix some memory leaks.
Bring a couple of changes from NetBSD:

queue.c (CVS Rev. 1.4. 1.5)
Fix memory leaks.
NULL does not need a cast.

grep.c (CVS Rev. 1.6)
Use the more portable getline.

Obtained from:	NetBSD
MFC after:	3 days
2014-07-17 15:48:11 +00:00
..
2014-02-08 13:37:02 +00:00
2014-07-17 15:48:11 +00:00
2014-07-17 15:48:11 +00:00
2014-07-17 14:51:50 +00:00