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

Function profile_buffer_finish

src/cli/agent_profiles.c:130–142  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

128}
129
130static char *profile_buffer_finish(profile_buffer_t *buffer) {
131 if (buffer->failed) {
132 free(buffer->data);
133 profile_buffer_init(buffer);
134 return NULL;
135 }
136 if (!buffer->data) {
137 buffer->data = (char *)calloc(1U, 1U);
138 }
139 char *result = buffer->data;
140 profile_buffer_init(buffer);
141 return result;
142}
143
144static void profile_buffer_discard(profile_buffer_t *buffer) {
145 free(buffer->data);

Callers 3

cbm_render_graph_promptFunction · 0.85
cbm_render_graph_profileFunction · 0.85

Calls 1

profile_buffer_initFunction · 0.85

Tested by

no test coverage detected