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

Function free_node_array

src/graph_buffer/graph_buffer.c:368–376  ·  view source on GitHub ↗

Free a node_ptr_array_t (callback for hash table iteration) */

Source from the content-addressed store, hash-verified

366
367/* Free a node_ptr_array_t (callback for hash table iteration) */
368static void free_node_array(const char *key, void *value, void *ud) {
369 (void)ud;
370 node_ptr_array_t *arr = value;
371 if (arr) {
372 cbm_da_free(arr);
373 cbm_free(CBM_MEM_CLASS_GBUF_INDEX, arr);
374 }
375 cbm_free(CBM_MEM_CLASS_GBUF_INDEX, (void *)key);
376}
377
378/* Free an edge_ptr_array_t (callback) */
379static void free_edge_array(const char *key, void *value, void *ud) {

Callers

nothing calls this directly

Calls 1

cbm_freeFunction · 0.85

Tested by

no test coverage detected