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

Function harness_ctx_free_tables

tests/test_parallel.c:163–171  ·  view source on GitHub ↗

Free the return-type table pass_calls may have built for a harness-owned * ctx — mirrors the production teardown in pipeline.c; the harness never * runs it, which leaked once the fixture gained typed (Java) methods. The * fixture has no ObjectScript, so no macro table can exist here. */

Source from the content-addressed store, hash-verified

161 * runs it, which leaked once the fixture gained typed (Java) methods. The
162 * fixture has no ObjectScript, so no macro table can exist here. */
163static void harness_ctx_free_tables(cbm_pipeline_ctx_t *ctx) {
164 if (ctx->return_type_table) {
165 for (int i = 0; i < ctx->return_type_table->count; i++) {
166 free((void *)ctx->return_type_table->entries[i].return_type);
167 }
168 free((void *)ctx->return_type_table);
169 ctx->return_type_table = NULL;
170 }
171}
172
173static cbm_gbuf_t *run_sequential(const char *project, const char *repo_path,
174 cbm_file_info_t *files, int file_count) {

Callers 2

run_sequentialFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected