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 ec656e0ef..5405948eb 100644
--- a/lib/system/gc.nim
+++ b/lib/system/gc.nim
@@ -575,6 +575,7 @@ proc collectCycles(gch: var TGcHeap) =
           d.refcount = d.refcount +% rcIncrement
           if d in gch.cycleRoots and not containsOrIncl(marker, d):
             forAllChildren(d, waPush)
+  Deinit(marker)
   # remove cycles:
   for c in elements(gch.cycleRoots):
     if c.refcount <% rcIncrement: