TracyAllocator: correct order of free and alloc

This commit is contained in:
Lee Cannon 2021-12-16 22:19:43 +00:00 committed by Andrew Kelley
parent 1fa5a1959d
commit d54ba76e40

View File

@ -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;