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

Function yaml_buf_free

src/cli/config_yaml_edit.c:211–214  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

209static int yaml_validate_utf8(const char *value, size_t len);
210
211static void yaml_buf_free(yaml_buf_t *buf) {
212 free(buf->data);
213 memset(buf, 0, sizeof(*buf));
214}
215
216static int yaml_buf_reserve(yaml_buf_t *buf, size_t extra) {
217 if (extra > YAML_OUTPUT_MAX || buf->len > YAML_OUTPUT_MAX - extra) {

Calls

no outgoing calls

Tested by

no test coverage detected