| ... | @@ -239,6 +239,7 @@ pub fn openSelfDebugInfo(allocator: &mem.Allocator) !&ElfStackTrace { | ... | @@ -239,6 +239,7 @@ pub fn openSelfDebugInfo(allocator: &mem.Allocator) !&ElfStackTrace { |
| 239 | switch (builtin.object_format) { | 239 | switch (builtin.object_format) { |
| 240 | builtin.ObjectFormat.elf => { | 240 | builtin.ObjectFormat.elf => { |
| 241 | const st = try allocator.create(ElfStackTrace); | 241 | const st = try allocator.create(ElfStackTrace); |
| | 242 | errdefer allocator.destroy(st); |
| 242 | *st = ElfStackTrace { | 243 | *st = ElfStackTrace { |
| 243 | .self_exe_file = undefined, | 244 | .self_exe_file = undefined, |
| 244 | .elf = undefined, | 245 | .elf = undefined, |