MCPcopy Create free account
hub / github.com/F-Stack/f-stack / rewriteConfigReleaseState

Function rewriteConfigReleaseState

app/redis-6.2.6/src/config.c:1566–1571  ·  view source on GitHub ↗

Free the configuration rewrite state. */

Source from the content-addressed store, hash-verified

1564
1565/* Free the configuration rewrite state. */
1566void rewriteConfigReleaseState(struct rewriteConfigState *state) {
1567 sdsfreesplitres(state->lines,state->numlines);
1568 dictRelease(state->option_to_line);
1569 dictRelease(state->rewritten);
1570 zfree(state);
1571}
1572
1573/* At the end of the rewrite process the state contains the remaining
1574 * map between "option name" => "lines in the original config file".

Callers 1

rewriteConfigFunction · 0.85

Calls 3

sdsfreesplitresFunction · 0.85
dictReleaseFunction · 0.70
zfreeFunction · 0.70

Tested by

no test coverage detected