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

Function RM_CloseKey

app/redis-6.2.6/src/module.c:2288–2293  ·  view source on GitHub ↗

Close a key handle. */

Source from the content-addressed store, hash-verified

2286
2287/* Close a key handle. */
2288void RM_CloseKey(RedisModuleKey *key) {
2289 if (key == NULL) return;
2290 moduleCloseKey(key);
2291 autoMemoryFreed(key->ctx,REDISMODULE_AM_KEY,key);
2292 zfree(key);
2293}
2294
2295/* Return the type of the key. If the key pointer is NULL then
2296 * REDISMODULE_KEYTYPE_EMPTY is returned. */

Callers 1

autoMemoryCollectFunction · 0.85

Calls 3

moduleCloseKeyFunction · 0.85
autoMemoryFreedFunction · 0.85
zfreeFunction · 0.70

Tested by

no test coverage detected