grep: fix some memory leaks.

Add memory leak fix missing from r268799.

Obtained from:	NetBSD
This commit is contained in:
pfg 2014-07-17 15:59:13 +00:00
parent bd6e5f0b6f
commit 31dcb2f8d4

View File

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