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

Function RM_FreeCallReply

src/module.cpp:3979–3986  ·  view source on GitHub ↗

Free a Call reply and all the nested replies it contains if it's an * array. */

Source from the content-addressed store, hash-verified

3977/* Free a Call reply and all the nested replies it contains if it's an
3978 * array. */
3979void RM_FreeCallReply(RedisModuleCallReply *reply) {
3980 /* This is a wrapper for the recursive free reply function. This is needed
3981 * in order to have the first level function to return on nested replies,
3982 * but only if called by the module API. */
3983 RedisModuleCtx *ctx = reply->ctx;
3984 moduleFreeCallReplyRec(reply,0);
3985 autoMemoryFreed(ctx,REDISMODULE_AM_REPLY,reply);
3986}
3987
3988/* Return the reply type. */
3989int RM_CallReplyType(RedisModuleCallReply *reply) {

Callers 1

autoMemoryCollectFunction · 0.85

Calls 2

moduleFreeCallReplyRecFunction · 0.85
autoMemoryFreedFunction · 0.85

Tested by

no test coverage detected