mirror of
https://github.com/Ed94/Odin.git
synced 2026-07-18 16:51:31 -07:00
Add default allocator to allocation related procedures e.g. alloc, free, delete, make
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user