From b1cba3528b85bbcbd9a9a4ba142f23885acfdf37 Mon Sep 17 00:00:00 2001 From: Araq Date: Sun, 4 Aug 2019 23:54:29 +0200 Subject: [PATCH] fixes #11844 (cherry picked from commit 7024bb800ccf2c3e075c5dd605b8384a399ffe53) --- lib/core/runtime_v2.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/core/runtime_v2.nim b/lib/core/runtime_v2.nim index 149c426e1f..5c9554ad89 100644 --- a/lib/core/runtime_v2.nim +++ b/lib/core/runtime_v2.nim @@ -84,7 +84,7 @@ proc nimRawDispose(p: pointer) {.compilerRtl.} = dealloc(p -! sizeof(RefHeader)) if allocs > 0: when hasThreadSupport: - atomicDec allocs + discard atomicDec(allocs) else: dec allocs else: