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

Function arch_free_dirs

src/store/store.c:6688–6705  ·  view source on GitHub ↗

Free dir arrays. */

Source from the content-addressed store, hash-verified

6686
6687/* Free dir arrays. */
6688static void arch_free_dirs(char **dir_paths, int *dir_child_counts, char ***dir_children,
6689 int *dir_children_caps, int dn, char **files, int fn) {
6690 for (int i = 0; i < dn; i++) {
6691 free(dir_paths[i]);
6692 for (int k = 0; k < dir_child_counts[i]; k++) {
6693 free(dir_children[i][k]);
6694 }
6695 free(dir_children[i]);
6696 }
6697 free(dir_paths);
6698 free(dir_child_counts);
6699 free(dir_children);
6700 free(dir_children_caps);
6701 for (int i = 0; i < fn; i++) {
6702 free(files[i]);
6703 }
6704 free(files);
6705}
6706
6707static int arch_file_tree(cbm_store_t *s, const char *project, const char *path,
6708 cbm_architecture_info_t *out) {

Callers 1

arch_file_treeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected