This commit is contained in:
mlugg 2025-09-22 15:27:16 +01:00
parent f7e0ff8a5f
commit 950a9d2a10
No known key found for this signature in database
GPG Key ID: 3F5B7DCCBF4AF02E

View File

@ -23,8 +23,8 @@ pub const DebugInfo = struct {
};
pub fn deinit(di: *DebugInfo, gpa: Allocator) void {
if (di.loaded_elf) |*loaded_elf| loaded_elf.deinit(gpa);
for (di.unwind) |*opt_unwind| {
const unwind = &(opt_unwind orelse continue);
for (&di.unwind) |*opt_unwind| {
const unwind = &(opt_unwind.* orelse continue);
unwind.deinit(gpa);
}
}