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

Function cbm_lex_free

src/cypher/cypher.c:425–435  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

423}
424
425void cbm_lex_free(cbm_lex_result_t *r) {
426 if (!r) {
427 return;
428 }
429 for (int i = 0; i < r->count; i++) {
430 safe_str_free(&r->tokens[i].text);
431 }
432 free(r->tokens);
433 free(r->error);
434 memset(r, 0, sizeof(*r));
435}
436
437/* ══════════════════════════════════════════════════════════════════
438 * PARSER

Callers 2

cbm_cypher_parseFunction · 0.85
test_cypher.cFile · 0.85

Calls 1

safe_str_freeFunction · 0.85

Tested by

no test coverage detected