| ... | @@ -881,6 +881,7 @@ fn readCoffDebugInfo(allocator: mem.Allocator, coff_bytes: []const u8) !ModuleDe | ... | @@ -881,6 +881,7 @@ fn readCoffDebugInfo(allocator: mem.Allocator, coff_bytes: []const u8) !ModuleDe |
| 881 | | 881 | |
| 882 | // Only used by pdb path | 882 | // Only used by pdb path |
| 883 | di.coff_section_headers = try coff_obj.getSectionHeadersAlloc(allocator); | 883 | di.coff_section_headers = try coff_obj.getSectionHeadersAlloc(allocator); |
| | 884 | errdefer allocator.free(di.coff_section_headers); |
| 884 | | 885 | |
| 885 | var path_buf: [windows.MAX_PATH]u8 = undefined; | 886 | var path_buf: [windows.MAX_PATH]u8 = undefined; |
| 886 | const len = try coff_obj.getPdbPath(path_buf[0..]); | 887 | const len = try coff_obj.getPdbPath(path_buf[0..]); |