grep: fix some memory leaks.
Add memory leak fix missing from r268799. Obtained from: NetBSD
This commit is contained in:
parent
3137e845c6
commit
8e5fc70f15
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=268801
@ -96,6 +96,7 @@ printqueue(void)
|
||||
|
||||
while ((item = dequeue()) != NULL) {
|
||||
printline(&item->data, '-', NULL, 0);
|
||||
free(item->data.dat);
|
||||
free(item);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user