MCPcopy Create free account
hub / github.com/Snapchat/KeyDB / freeRedisConfig

Function freeRedisConfig

src/redis-benchmark.cpp:387–391  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

385 return NULL;
386}
387static void freeRedisConfig(redisConfig *cfg) {
388 if (cfg->save) sdsfree(cfg->save);
389 if (cfg->appendonly) sdsfree(cfg->appendonly);
390 zfree(cfg);
391}
392
393static void freeClient(client c) {
394 aeEventLoop *el = CLIENT_GET_EVENTLOOP(c);

Callers 3

getRedisConfigFunction · 0.85
freeClusterNodeFunction · 0.85
mainFunction · 0.85

Calls 2

sdsfreeFunction · 0.85
zfreeFunction · 0.85

Tested by

no test coverage detected