debug: fix resource (de)allocation for MachO 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.
96c1314443Jakub Konka committed on 4/20/2022, 10:45:01 PMparent26153ce