aboutsummaryrefslogtreecommitdiff
path: root/lib/std/Build/Step/CheckObject.zig
diff options
context:
space:
mode:
authorLuuk de Gram <luuk@degram.dev>2023-06-22 19:53:07 +0200
committerLuuk de Gram <luuk@degram.dev>2023-06-26 20:00:57 +0200
commit622b7c47468bc4508f4cfe840e0f8c51b54949dd (patch)
tree987bad278d24c50313ec104e60a0fc6b00d20d50 /lib/std/Build/Step/CheckObject.zig
parent834609038c83e0122b506fadfa38b9acb7ee9068 (diff)
downloadzig-622b7c47468bc4508f4cfe840e0f8c51b54949dd.tar.gz
zig-622b7c47468bc4508f4cfe840e0f8c51b54949dd.zip
free allocated memory upon call `join`
When `join` detects a thread has completed, it will free the allocated memory of the thread. For this we must first copy the allocator. This is required as the allocated memory holds a reference to the original allocator. If we free the memory, we would end up with UB as the allocator would free itself.
Diffstat (limited to 'lib/std/Build/Step/CheckObject.zig')
0 files changed, 0 insertions, 0 deletions