mirror of
https://github.com/ziglang/zig.git
synced 2026-01-11 09:55:12 +00:00
TracyAllocator: correct order of free and alloc
This commit is contained in:
parent
1fa5a1959d
commit
d54ba76e40
@ -145,8 +145,8 @@ pub fn TracyAllocator(comptime name: ?[:0]const u8) type {
|
||||
freeNamed(buf.ptr, n);
|
||||
allocNamed(buf.ptr, resized_len, n);
|
||||
} else {
|
||||
alloc(buf.ptr, resized_len);
|
||||
free(buf.ptr);
|
||||
alloc(buf.ptr, resized_len);
|
||||
}
|
||||
|
||||
return resized_len;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user