diff options
| author | Luuk de Gram <luuk@degram.dev> | 2023-06-22 19:53:07 +0200 |
|---|---|---|
| committer | Luuk de Gram <luuk@degram.dev> | 2023-06-26 20:00:57 +0200 |
| commit | 622b7c47468bc4508f4cfe840e0f8c51b54949dd (patch) | |
| tree | 987bad278d24c50313ec104e60a0fc6b00d20d50 /lib/std/array_list.zig | |
| parent | 834609038c83e0122b506fadfa38b9acb7ee9068 (diff) | |
| download | zig-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/array_list.zig')
0 files changed, 0 insertions, 0 deletions
