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

Function sdsfree

app/redis-6.2.6/src/sds.c:194–197  ·  view source on GitHub ↗

Free an sds string. No operation is performed if 's' is NULL. */

Source from the content-addressed store, hash-verified

192
193/* Free an sds string. No operation is performed if 's' is NULL. */
194void sdsfree(sds s) {
195 if (s == NULL) return;
196 s_free((char*)s-sdsHdrSize(s[-1]));
197}
198
199/* Set the sds string length to the length as obtained with strlen(), so
200 * considering as content only up to the first null term character.

Callers 15

loadServerConfigFunction · 0.85
configGetCommandFunction · 0.85
rewriteConfigReadOldFileFunction · 0.85
rewriteConfigRewriteLineFunction · 0.85
rewriteConfigUserOptionFunction · 0.85
rewriteConfigBindOptionFunction · 0.85
rewriteConfigFunction · 0.85
sdsConfigSetFunction · 0.85

Calls 1

sdsHdrSizeFunction · 0.85

Tested by

no test coverage detected