commit d54ba76e40232f9e8e3f784e927f3138bdd97520 (tree)
parent 1fa5a1959ddfdea98a1bd809e953daf42deb53f9
Author: Lee Cannon <leecannon@leecannon.xyz>
Date: Thu, 16 Dec 2021 22:19:43 +0000
TracyAllocator: correct order of free and alloc
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/tracy.zig b/src/tracy.zig
@@ -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;