From 27c8efda9d2890b3a07773d39e80bfdb02534eb6 Mon Sep 17 00:00:00 2001 From: Yuriy Glukhov Date: Wed, 15 Mar 2017 11:58:34 +0200 Subject: [PATCH] decTypeSize on growObj (#5465) --- lib/system/gc.nim | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/system/gc.nim b/lib/system/gc.nim index 66a5df73cb..e37f601b43 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