ElfFileDeinit
Description
Release storage owned by an ElfFile. Frees the byte buffer if owns_data was true. Safe to call on a zeroed struct.
Usage example (Cross-references)
Usage examples (Cross-references)
- In
Dwarf.c:33:
if (built)
DwarfLinesDeinit(&lines);
ElfFileDeinit(&elf);
DefaultAllocatorDeinit(&alloc);
return ok;- In
Dwarf.c:78:
}
ElfFileDeinit(&elf);
SymbolResolverDeinit(&res);
DefaultAllocatorDeinit(&alloc);- In
Elf.c:27:
ok = ok && elf.symbols.length > 0;
ElfFileDeinit(&elf);
DefaultAllocatorDeinit(&alloc);
return ok;- In
Elf.c:45:
bool ok = text != NULL && text->size > 0 && (text->flags & 0x4); // SHF_EXECINSTR = 0x4
ElfFileDeinit(&elf);
DefaultAllocatorDeinit(&alloc);
return ok;- In
Elf.c:71:
}
ElfFileDeinit(&elf);
DefaultAllocatorDeinit(&alloc);
return ok; }
if (!VecPushBackR(&self->cache, entry)) {
ElfFileDeinit(&entry.elf);
return NULL;
} }
#endif
ElfFileDeinit(&e->elf);
}
VecDeinit(&self->cache);- In
Elf.c:336:
fail:
ElfFileDeinit(out);
return false;
}- In
Elf.c:365:
}
void ElfFileDeinit(ElfFile *self) {
if (!self)
return;
Last updated on