decTypeSize on growObj (#5465)
This commit is contained in:
parent
51cd3bd86f
commit
27c8efda9d
1 changed files with 1 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue