grep: fix some memory leaks.
Add memory leak fix missing from r268799. Obtained from: NetBSD
This commit is contained in:
parent
bd6e5f0b6f
commit
31dcb2f8d4
@ -96,6 +96,7 @@ printqueue(void)
|
||||
|
||||
while ((item = dequeue()) != NULL) {
|
||||
printline(&item->data, '-', NULL, 0);
|
||||
free(item->data.dat);
|
||||
free(item);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user