aboutsummaryrefslogtreecommitdiff
path: root/src/sync.zig
diff options
context:
space:
mode:
authorGravatar Jason <m.jason.liu@outlook.com> 2023-08-25 07:13:14 +0800
committerGravatar GitHub <noreply@github.com> 2023-08-24 16:13:14 -0700
commit19aa9d93de0971513b1ff94ab72b54c7c2031dda (patch)
treea6c6fcef14562ea9bdcfd0779ee420cd9e6439cc /src/sync.zig
parent55eb4ffe8fc8708d5a44c53fe75026a03f0a4de8 (diff)
downloadbun-19aa9d93de0971513b1ff94ab72b54c7c2031dda.tar.gz
bun-19aa9d93de0971513b1ff94ab72b54c7c2031dda.tar.zst
bun-19aa9d93de0971513b1ff94ab72b54c7c2031dda.zip
update zig to 0.11.0 (#4233)
* WIP * backup * more change * json related error sovled * number related issue solved * revert WriterType changed before * destroy -> free * jsonStringify related issues solved * fix mem.free expected []T or *[_]T, passed [*]const u8 * fix expected []T or *[_]T, passed [*:0]const u8 * fix build script * fix build script, for real * replace 0.11.0-dev.4006+bf827d0b5 to 0.12.0-dev.161+6a5463951 * fix build on macOS, COPYFILE.DATA -> COPYFILE_DATA * fix the last destroy on [*]ptr issue --------- Co-authored-by: Dylan Conway <35280289+dylan-conway@users.noreply.github.com>
Diffstat (limited to '')
-rw-r--r--src/sync.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sync.zig b/src/sync.zig
index d2ecd95bd..ec9105cf3 100644
--- a/src/sync.zig
+++ b/src/sync.zig
@@ -69,7 +69,7 @@ pub const ThreadPool = struct {
const allocator = self.allocator;
const closure = try allocator.create(Closure);
- errdefer allocator.free(closure);
+ errdefer allocator.destroy(closure);
closure.* = Closure{
.func_args = args,
.allocator = allocator,