diff options
| author | Jakub Konka <kubkon@jakubkonka.com> | 2022-04-21 10:46:04 +0200 |
|---|---|---|
| committer | Jakub Konka <kubkon@jakubkonka.com> | 2022-04-21 11:48:15 +0200 |
| commit | 28ca203b7132ba0513a3854bd3bcbd0ee9bca067 (patch) | |
| tree | eabc9d3522d89fe8d050197bd6dc1c8a14c349a5 /src/codegen/c.zig | |
| parent | 96c1314443bdf26442a2c9fdffa03f2afffbcb8e (diff) | |
| download | zig-28ca203b7132ba0513a3854bd3bcbd0ee9bca067.tar.gz zig-28ca203b7132ba0513a3854bd3bcbd0ee9bca067.zip | |
debug: fix resource (de)allocation for Elf and Coff targets
With this change, it is now possible to safely call
`var di = std.debug.openSelfDebugInfo(gpa)`. Calling then
`di.deinit()` on the object will correctly free all allocated
resources.
Ensure we store the result of `mmap` with correct alignment.
Diffstat (limited to 'src/codegen/c.zig')
0 files changed, 0 insertions, 0 deletions
