From d54ba76e40232f9e8e3f784e927f3138bdd97520 Mon Sep 17 00:00:00 2001 From: Lee Cannon Date: Thu, 16 Dec 2021 22:19:43 +0000 Subject: [PATCH] TracyAllocator: correct order of free and alloc --- src/tracy.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tracy.zig b/src/tracy.zig index 23f8075314..908092fb8c 100644 --- 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;