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

Function harness_ctx_free_tables

tests/test_parallel.c:193–201  ·  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

191 * runs it, which leaked once the fixture gained typed (Java) methods. The
192 * fixture has no ObjectScript, so no macro table can exist here. */
193static void harness_ctx_free_tables(cbm_pipeline_ctx_t *ctx) {
194 if (ctx->return_type_table) {
195 for (int i = 0; i < ctx->return_type_table->count; i++) {
196 free((void *)ctx->return_type_table->entries[i].return_type);
197 }
198 free((void *)ctx->return_type_table);
199 ctx->return_type_table = NULL;
200 }
201}
202
203static cbm_gbuf_t *run_sequential(const char *project, const char *repo_path,
204 cbm_file_info_t *files, int file_count) {

Callers 3

run_sequentialFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected