# std.Thread: fix freeAndExit on x86_64-linux \(\#12693\) · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/59e33b447b0502bdfa18909f4381360bb8f49b70)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: 59e33b447b0502bdfa18909f4381360bb8f49b70

Requested commit: 59e33b447b0502bdfa18909f4381360bb8f49b70

Commit: 59e33b447b0502bdfa18909f4381360bb8f49b70

Tree: e6fc69e9efb7109515f07e0d1c3a5cb88d1d24c0

Author: biexelar

Committer: GitHub

## Message

```
std.Thread: fix freeAndExit on x86_64-linux (#12693)

Previously, this function used incorrect registers for the munmap syscall, leading to detached threads not cleaning up.

closes #12690

Co-authored-by: bxlr <biexelar@diroot.org>
```

## Parents

- [56cfa8f22f69d813efedb1fa01fdcb7077ca0e5a](https://git.cafe/gitcafe/zig/commit/56cfa8f22f69d813efedb1fa01fdcb7077ca0e5a?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/59e33b447b0502bdfa18909f4381360bb8f49b70?format=markdown)
