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

Function toml_buffer_dispose

src/cli/config_toml_edit.c:157–165  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

155 size_t owned_len, int install, toml_buffer_t *output);
156
157static void toml_buffer_dispose(toml_buffer_t *buffer) {
158 if (!buffer) {
159 return;
160 }
161 free(buffer->data);
162 buffer->data = NULL;
163 buffer->len = 0;
164 buffer->cap = 0;
165}
166
167static int toml_buffer_reserve(toml_buffer_t *buffer, size_t additional) {
168 if (!buffer || buffer->len == SIZE_MAX || additional > SIZE_MAX - buffer->len - 1) {

Calls

no outgoing calls

Tested by

no test coverage detected