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)
- In
Pe.c:176:
ok = ok && pe.codeview.pdb_path && ZstrCompare(pe.codeview.pdb_path, kPdbPath) == 0;
PeFileDeinit(&pe);
DefaultAllocatorDeinit(&alloc);
return ok;- In
Pe.c:200:
ok = ok && !PeFileRvaToOffset(&pe, 0xdead0000, &garbage);
PeFileDeinit(&pe);
DefaultAllocatorDeinit(&alloc);
return ok;- In
PdbCache.c:179:
PdbFileDeinit(&e->pdb);
if (e->pe_open)
PeFileDeinit(&e->pe);
if (e->module_path && self->allocator) {
u64 n = 0;- In
Pe.c:413:
fail:
PeFileDeinit(out);
return false;
}- In
Pe.c:440:
}
void PeFileDeinit(PeFile *self) {
if (!self)
return;
Last updated on