MCPcopy Create free account
hub / github.com/RedisGraph/RedisGraph / ListReduceCtx_Free

Function ListReduceCtx_Free

src/arithmetic/list_funcs/list_funcs.c:26–43  ·  view source on GitHub ↗

routine for freeing a reduction function private data

Source from the content-addressed store, hash-verified

24
25// routine for freeing a reduction function private data
26void ListReduceCtx_Free
27(
28 void *ctx_ptr
29) {
30 ListReduceCtx *ctx = ctx_ptr;
31
32 if(ctx->exp) {
33 AR_EXP_Free(ctx->exp);
34 }
35
36 if(ctx->record) {
37 rax *mapping = ctx->record->mapping;
38 Record_Free(ctx->record);
39 raxFree(mapping);
40 }
41
42 rm_free(ctx);
43}
44
45// Routine for cloning a comprehension function's private data.
46void *ListReduceCtx_Clone

Callers

nothing calls this directly

Calls 3

AR_EXP_FreeFunction · 0.85
Record_FreeFunction · 0.85
rm_freeFunction · 0.85

Tested by

no test coverage detected