mirror of
https://github.com/nim-lang/Nim.git
synced 2026-02-14 23:33:28 +00:00
decTypeSize on growObj (#5465)
This commit is contained in:
committed by
Andreas Rumpf
parent
51cd3bd86f
commit
27c8efda9d
@@ -593,6 +593,7 @@ proc growObj(old: pointer, newsize: int, gch: var GcHeap): pointer =
|
||||
break
|
||||
dec(j)
|
||||
beforeDealloc(gch, ol, "growObj stack trash")
|
||||
decTypeSize(ol, ol.typ)
|
||||
rawDealloc(gch.region, ol)
|
||||
else:
|
||||
# we split the old refcount in 2 parts. XXX This is still not entirely
|
||||
|
||||
Reference in New Issue
Block a user