This commit is contained in:
Andreas Rumpf 2022-12-10 16:21:43 +01:00 • committed by GitHub
commit b59c657be3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -787,8 +787,9 @@ when defined(gcDestructors):
while it != nil: while it != nil:
if maxIters == 0: if maxIters == 0:
let rest = it.next.loada let rest = it.next.loada
it.next.storea nil if rest != nil:
addToSharedFreeList(c, rest) it.next.storea nil
addToSharedFreeList(c, rest)
break break
inc x, size inc x, size
it = it.next.loada it = it.next.loada