(cherry picked from commit 7024bb800c)
This commit is contained in:
Araq
2019-08-04 23:54:29 +02:00
committed by narimiran
parent 38893a34ee
commit b1cba3528b

View File

@@ -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: