Skip to content

PeFileDeinit

Description

Release storage owned by a PeFile. Frees the byte buffer if owns_data was true. Safe on a zeroed struct.

Usage example (Cross-references)

Usage examples (Cross-references)
        ok = ok && pe.codeview.pdb_path && ZstrCompare(pe.codeview.pdb_path, kPdbPath) == 0;
    
        PeFileDeinit(&pe);
        DefaultAllocatorDeinit(&alloc);
        return ok;
        ok          = ok && !PeFileRvaToOffset(&pe, 0xdead0000, &garbage);
    
        PeFileDeinit(&pe);
        DefaultAllocatorDeinit(&alloc);
        return ok;
                PdbFileDeinit(&e->pdb);
            if (e->pe_open)
                PeFileDeinit(&e->pe);
            if (e->module_path && self->allocator) {
                u64 n = 0;
    
    fail:
        PeFileDeinit(out);
        return false;
    }
    }
    
    void PeFileDeinit(PeFile *self) {
        if (!self)
            return;
Last updated on