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

Function Aggregate_Free

src/arithmetic/aggregate_funcs/agg_funcs.c:110–125  ·  view source on GitHub ↗

routine for freeing a generic aggregate function context

Source from the content-addressed store, hash-verified

108
109// routine for freeing a generic aggregate function context
110void Aggregate_Free
111(
112 AR_FuncDesc *agg_func,
113 AggregateCtx *ctx
114) {
115 if(ctx == NULL) return;
116
117 SIValue_Free(ctx->result);
118
119 if(ctx->private_data) {
120 ASSERT(agg_func->callbacks.free != NULL);
121 agg_func->callbacks.free(ctx->private_data);
122 }
123
124 rm_free(ctx);
125}
126

Callers 1

_AR_EXP_FreeOpInternalsFunction · 0.85

Calls 2

SIValue_FreeFunction · 0.85
rm_freeFunction · 0.85

Tested by

no test coverage detected