mirror of git://git.suckless.org/sbase
Remove entries from TAILQ when free-ing
This commit is contained in:
parent
c9609ea5ff
commit
1ec0073bb8
|
@ -107,6 +107,7 @@ main(int argc, char *argv[])
|
|||
|
||||
for (pe = TAILQ_FIRST(&omitpid_head); pe; pe = tmp) {
|
||||
tmp = TAILQ_NEXT(pe, entry);
|
||||
TAILQ_REMOVE(&omitpid_head, pe, entry);
|
||||
free(pe);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue