We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 461fb49 commit 5e3cadfCopy full SHA for 5e3cadf
1 file changed
lib/std/debug.zig
@@ -838,7 +838,7 @@ pub fn openSelfDebugInfo(allocator: mem.Allocator) OpenSelfDebugInfoError!DebugI
838
fn readCoffDebugInfo(allocator: mem.Allocator, coff_bytes: []const u8) !ModuleDebugInfo {
839
nosuspend {
840
const coff_obj = try allocator.create(coff.Coff);
841
- errdefer allocator.destroy(coff_obj);
+ defer allocator.destroy(coff_obj);
842
coff_obj.* = try coff.Coff.init(coff_bytes);
843
844
var di = ModuleDebugInfo{
@@ -1289,6 +1289,7 @@ pub const DebugInfo = struct {
1289
self.allocator.destroy(mdi);
1290
}
1291
self.address_map.deinit();
1292
+ if (native_os == .windows) self.modules.deinit(self.allocator);
1293
1294
1295
pub fn getModuleForAddress(self: *DebugInfo, address: usize) !*ModuleDebugInfo {
0 commit comments