summary refs log tree commit diff stats
path: root/lib/system/gc.nim
diff options
context:
space:
mode:
Diffstat (limited to 'lib/system/gc.nim')
-rw-r--r--lib/system/gc.nim1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/system/gc.nim b/lib/system/gc.nim
index 66a5df73c..e37f601b4 100644
--- a/lib/system/gc.nim
+++ b/lib/system/gc.nim
@@ -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