fix ELF/DWARF leak

This commit is contained in:
Johannes Weiss
2025-02-05 14:19:37 +00:00
parent 246e130584
commit e533b8a7ff
2 changed files with 5 additions and 4 deletions

View File

@@ -502,7 +502,7 @@ protocol DwarfSource {
}
struct DwarfReader<S: DwarfSource> {
struct DwarfReader<S: DwarfSource & AnyObject> {
typealias Source = S
typealias Address = UInt64
@@ -513,7 +513,7 @@ struct DwarfReader<S: DwarfSource> {
var end: Address { return base + size }
}
var source: Source
unowned var source: Source
struct AbbrevInfo {
var tag: Dwarf_Tag