summary refs log tree commit diff stats
path: root/lib
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2017-12-11 09:18:11 +0100
committerAndreas Rumpf <rumpf_a@web.de>2017-12-11 09:18:11 +0100
commite24a3bd0ab5e34f18ebae784a94d8cb3459fcca7 (patch)
treeacfa84263c8b3e6d31a1afedb72a9d1bd9c1a591 /lib
parente8a52a0fc2f0e164d0f79ec443c143d433731472 (diff)
downloadNim-e24a3bd0ab5e34f18ebae784a94d8cb3459fcca7.tar.gz
allocator: minor fix for deallocOsPages
Diffstat (limited to 'lib')
-rw-r--r--lib/system/alloc.nim1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/system/alloc.nim b/lib/system/alloc.nim
index 725c9ccd3..e274e8e0c 100644
--- a/lib/system/alloc.nim
+++ b/lib/system/alloc.nim
@@ -308,6 +308,7 @@ proc llDeallocAll(a: var MemRegion) =
     var next = it.next
     osDeallocPages(it, PageSize)
     it = next
+  a.llmem = nil
 
 proc intSetGet(t: IntSet, key: int): PTrunk =
   var it = t.data[key and high(t.data)]