summary refs log tree commit diff stats
path: root/lib/system
diff options
context:
space:
mode:
Diffstat (limited to 'lib/system')
-rwxr-xr-xlib/system/alloc.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/system/alloc.nim b/lib/system/alloc.nim
index e3b1d589b..8cf0c2be1 100755
--- a/lib/system/alloc.nim
+++ b/lib/system/alloc.nim
@@ -561,7 +561,7 @@ proc alloc(allocator: var TMemRegion, size: int): pointer =
   result = cast[pointer](cast[TAddress](result) +% sizeof(TFreeCell))
 
 proc alloc0(allocator: var TMemRegion, size: int): pointer =
-  result = alloc(size)
+  result = alloc(allocator, size)
   zeroMem(result, size)
 
 proc dealloc(allocator: var TMemRegion, p: pointer) =