MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / xref_free

Function xref_free

internal/cbm/pdf/pdf_obj.c:1556–1560  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1554/* ── Cross-reference ─────────────────────────────────────────────── */
1555
1556static void xref_free(pdf_xref_t *x) {
1557 cbm_free(CBM_MEM_CLASS_EXTRACT, x->v);
1558 pdf_map_free(&x->by_num);
1559 memset(x, 0, sizeof(*x));
1560}
1561
1562/* The entry for num; created (zeroed) when absent. *fresh says which. */
1563static pdf_xent_t *xref_slot(pdf_doc_t *d, pdf_xref_t *x, int64_t num, bool *fresh) {

Callers 3

load_xrefFunction · 0.85
reconstructFunction · 0.85
pdf_doc_closeFunction · 0.85

Calls 2

cbm_freeFunction · 0.85
pdf_map_freeFunction · 0.85

Tested by

no test coverage detected