aboutsummaryrefslogtreecommitdiff
path: root/core/runtime
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2018-08-28 20:14:56 +0100
committergingerBill <bill@gingerbill.org>2018-08-28 20:14:56 +0100
commit28523f17e2c702379dff89b024edcb1614256476 (patch)
treed5b958370737b763aa76302335b947474843bfac /core/runtime
parentae2af8315ee8538774efe2cf608d4be50be5305a (diff)
Add default `allocator` to allocation related procedures e.g. alloc, free, delete, make
Diffstat (limited to 'core/runtime')
-rw-r--r--core/runtime/core.odin4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/runtime/core.odin b/core/runtime/core.odin
index c6ccb7bf4..7bf3a9826 100644
--- a/core/runtime/core.odin
+++ b/core/runtime/core.odin
@@ -748,8 +748,8 @@ __dynamic_map_rehash :: proc(using header: Map_Header, new_count: int, loc := #c
if __dynamic_map_full(new_header) do __dynamic_map_grow(new_header, loc);
}
- mem.free_ptr_with_allocator(header_hashes.allocator, header_hashes.data, loc);
- mem.free_ptr_with_allocator(header.m.entries.allocator, header.m.entries.data, loc);
+ free(header_hashes.data, header_hashes.allocator, loc);
+ free(header.m.entries.data, header.m.entries.allocator, loc);
header.m^ = nm;
}