Partially revert previous commit. DeleteLink() does not deletes permanent
links so we should be aware of it and try to delete every link only once or we will loop forever.
This commit is contained in:
parent
5cfa90e902
commit
48ca67bea6
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=179924
@ -819,8 +819,12 @@ CleanupAliasData(struct libalias *la)
|
||||
|
||||
LIBALIAS_LOCK_ASSERT(la);
|
||||
for (i = 0; i < LINK_TABLE_OUT_SIZE; i++) {
|
||||
while ((lnk = LIST_FIRST(&la->linkTableOut[i])) != NULL)
|
||||
lnk = LIST_FIRST(&la->linkTableOut[i]);
|
||||
while (lnk != NULL) {
|
||||
struct alias_link *link_next = LIST_NEXT(lnk, list_out);
|
||||
DeleteLink(lnk);
|
||||
lnk = link_next;
|
||||
}
|
||||
}
|
||||
|
||||
la->cleanupIndex = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user