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

Function op_modules_free

src/pipeline/pass_operator.c:193–200  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

191} op_modules_t;
192
193static void op_modules_free(op_modules_t *m) {
194 for (int i = 0; i < m->count; i++) {
195 cbm_free(CBM_MEM_CLASS_OTHER, m->items[i].path);
196 cbm_free(CBM_MEM_CLASS_OTHER, m->items[i].dir);
197 }
198 cbm_free(CBM_MEM_CLASS_OTHER, m->items);
199 *m = (op_modules_t){0};
200}
201
202/* Note the `module` line of a go.mod at `file`. */
203static void op_note_module(op_modules_t *m, const char *file, const char *text) {

Callers 1

Calls 1

cbm_freeFunction · 0.85

Tested by

no test coverage detected