diff --git a/lib/system/gc_stack.nim b/lib/system/gc_stack.nim index 5f72b8959..6f492c307 100644 --- a/lib/system/gc_stack.nim +++ b/lib/system/gc_stack.nim @@ -79,6 +79,7 @@ template withRegion*(r: MemRegion; body: untyped) = try: body finally: + r = tlRegion tlRegion = oldRegion template inc(p: pointer, s: int) =