Add mem.Tracking_Allocator
This commit is contained in:
1 parent
ec178825ec
commit
1f571f48e5
2 files changed
+69
-1
No files matched your search
+1
-1
@@ -168,7 +168,7 @@ default_resize_align :: proc(old_memory: rawptr, old_size, new_size, alignment:
|
||||
new_memory := alloc(new_size, alignment, allocator, loc);
|
||||
if new_memory == nil do return nil;
|
||||
|
||||
copy(new_memory, old_memory, min(old_size, new_size));;
|
||||
copy(new_memory, old_memory, min(old_size, new_size));
|
||||
free(old_memory, allocator, loc);
|
||||
return new_memory;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user