aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMotiejus Jakštys <motiejus@jakstys.lt>2022-03-01 14:55:15 +0200
committerAndrew Kelley <andrew@ziglang.org>2022-03-01 13:28:47 -0500
commit543bee0adf2d3b036654fa0983c16ff7023f504c (patch)
treef5aaeb93432acd7f8bff670dc3229c99ff7dbb71 /src
parent52205a3c162d5adaf98be1dbf96bf86afd658182 (diff)
downloadzig-543bee0adf2d3b036654fa0983c16ff7023f504c.tar.gz
zig-543bee0adf2d3b036654fa0983c16ff7023f504c.zip
std.BufSet.clone: fix key ownership
This was introduced in d1a46548349a902c30057b3ba66ebad9bc25bdd2: when a BufSet clones the keys, it used to assign the new pointers to the old struct. Fix that by assigning the pointers to the correct, i.e. the new, struct. This caused double-free when using arena allocator for the new struct, also in the test case.
Diffstat (limited to 'src')
0 files changed, 0 insertions, 0 deletions