MachoFileDeinit
Description
Release storage owned by a MachoFile. Safe on a zeroed struct.
Usage example (Cross-references)
Usage examples (Cross-references)
- In
MachO.c:143:
ok = ok && m.symbols.data[0].value == 0x100000010ull;
MachoFileDeinit(&m);
DefaultAllocatorDeinit(&alloc);
return ok;- In
MachO.c:172:
ok = ok && s == NULL;
MachoFileDeinit(&m);
DefaultAllocatorDeinit(&alloc);
return ok;- In
MachO.c:226:
ok = ok && m.symbols.length > 0;
MachoFileDeinit(&m);
DefaultAllocatorDeinit(&alloc);
return ok;- In
MachO.c:261:
ZstrFindSubstring(sym->name, "test_macho_resolves_running_binary_symbol") != NULL;
MachoFileDeinit(&m);
DefaultAllocatorDeinit(&alloc);
return ok;- In
MachoCache.c:125:
if (!e->dsym.has_uuid || MemCompare(e->dsym.uuid, e->main.uuid, 16) != 0) {
LOG_ERROR("MachoCache: dSYM UUID mismatch for {}", e->module_path);
MachoFileDeinit(&e->dsym);
return false;
}- In
MachoCache.c:176:
DwarfFunctionsDeinit(&e->fns);
if (e->dsym_open)
MachoFileDeinit(&e->dsym);
if (e->main_open)
MachoFileDeinit(&e->main);- In
MachoCache.c:178:
MachoFileDeinit(&e->dsym);
if (e->main_open)
MachoFileDeinit(&e->main);
if (e->module_path && self->allocator) {
u64 n = 0;- In
MachO.c:276:
fail:
MachoFileDeinit(out);
return false;
}- In
MachO.c:303:
}
void MachoFileDeinit(MachoFile *self) {
if (!self)
return;
Last updated on