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

Function arch_free_dirs

src/store/store.c:4568–4585  ·  view source on GitHub ↗

Free dir arrays. */

Source from the content-addressed store, hash-verified

4566
4567/* Free dir arrays. */
4568static void arch_free_dirs(char **dir_paths, int *dir_child_counts, char ***dir_children,
4569 int *dir_children_caps, int dn, char **files, int fn) {
4570 for (int i = 0; i < dn; i++) {
4571 free(dir_paths[i]);
4572 for (int k = 0; k < dir_child_counts[i]; k++) {
4573 free(dir_children[i][k]);
4574 }
4575 free(dir_children[i]);
4576 }
4577 free(dir_paths);
4578 free(dir_child_counts);
4579 free(dir_children);
4580 free(dir_children_caps);
4581 for (int i = 0; i < fn; i++) {
4582 free(files[i]);
4583 }
4584 free(files);
4585}
4586
4587static int arch_file_tree(cbm_store_t *s, const char *project, const char *path,
4588 cbm_architecture_info_t *out) {

Callers 1

arch_file_treeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected