grep: fix some memory leaks.

Add memory leak fix missing from r268799.

Obtained from:	NetBSD
This commit is contained in:
Pedro F. Giffuni 2014-07-17 15:59:13 +00:00
parent 3137e845c6
commit 8e5fc70f15
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=268801

View File

@ -96,6 +96,7 @@ printqueue(void)
while ((item = dequeue()) != NULL) {
printline(&item->data, '-', NULL, 0);
free(item->data.dat);
free(item);
}
}