Skip to content
MachoFileDeinit

MachoFileDeinit

Description

Release storage owned by a MachoFile. Safe on a zeroed struct.

Usage example (Cross-references)

Usage examples (Cross-references)
        ok = ok && m.symbols.data[0].value == 0x100000010ull;
    
        MachoFileDeinit(&m);
        DefaultAllocatorDeinit(&alloc);
        return ok;
        ok = ok && s == NULL;
    
        MachoFileDeinit(&m);
        DefaultAllocatorDeinit(&alloc);
        return ok;
        ok      = ok && m.symbols.length > 0;
    
        MachoFileDeinit(&m);
        DefaultAllocatorDeinit(&alloc);
        return ok;
                  ZstrFindSubstring(sym->name, "test_macho_resolves_running_binary_symbol") != NULL;
    
        MachoFileDeinit(&m);
        DefaultAllocatorDeinit(&alloc);
        return ok;
        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;
        }
                DwarfFunctionsDeinit(&e->fns);
            if (e->dsym_open)
                MachoFileDeinit(&e->dsym);
            if (e->main_open)
                MachoFileDeinit(&e->main);
                MachoFileDeinit(&e->dsym);
            if (e->main_open)
                MachoFileDeinit(&e->main);
            if (e->module_path && self->allocator) {
                u64 n = 0;
    
    fail:
        MachoFileDeinit(out);
        return false;
    }
    }
    
    void MachoFileDeinit(MachoFile *self) {
        if (!self)
            return;
Last updated on