MachoDeinit
Description
Release storage owned by a Macho. Frees data through allocator (unconditional – the parser always owns its bytes) and tears down the vectors. Safe on a zeroed struct.
Usage example (Cross-references)
Usage examples (Cross-references)
- In
MachO.c:144:
ok = ok && m.symbols.data[0].value == 0x100000010ull;
MachoDeinit(&m);
DefaultAllocatorDeinit(&alloc);
return ok;- In
MachO.c:173:
ok = ok && s == NULL;
MachoDeinit(&m);
DefaultAllocatorDeinit(&alloc);
return ok;- In
MachO.c:227:
ok = ok && m.symbols.length > 0;
MachoDeinit(&m);
DefaultAllocatorDeinit(&alloc);
return ok;- In
MachO.c:262:
ZstrFindSubstring(sym->name, "test_macho_resolves_running_binary_symbol") != NULL;
MachoDeinit(&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);
MachoDeinit(&e->dsym);
return false;
}- In
MachoCache.c:176:
DwarfFunctionsDeinit(&e->fns);
if (e->dsym_open)
MachoDeinit(&e->dsym);
if (e->main_open)
MachoDeinit(&e->main);- In
MachoCache.c:178:
MachoDeinit(&e->dsym);
if (e->main_open)
MachoDeinit(&e->main);
if (e->module_path && self->allocator) {
u64 n = 0;- In
MachO.c:424:
fail:
MachoDeinit(out);
return false;
}- In
MachO.c:456:
}
void MachoDeinit(Macho *self) {
if (!self)
return;
Last updated on