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

Function yaml_buf_free

src/cli/config_yaml_edit.c:218–221  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

216static int yaml_validate_utf8(const char *value, size_t len);
217
218static void yaml_buf_free(yaml_buf_t *buf) {
219 free(buf->data);
220 memset(buf, 0, sizeof(*buf));
221}
222
223static int yaml_buf_reserve(yaml_buf_t *buf, size_t extra) {
224 if (extra > YAML_OUTPUT_MAX || buf->len > YAML_OUTPUT_MAX - extra) {

Calls

no outgoing calls

Tested by

no test coverage detected