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

Function _AR_EXP_FreeOpInternals

src/arithmetic/arithmetic_expression.c:941–961  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

939}
940
941static inline void _AR_EXP_FreeOpInternals
942(
943 AR_ExpNode *op_node
944) {
945 if(AGGREGATION_NODE(op_node)) {
946 AR_FuncDesc *agg_func = op_node->op.f;
947
948 AggregateCtx *ctx = op_node->op.private_data;
949 ASSERT(ctx != NULL);
950
951 Aggregate_Free(agg_func, ctx);
952 } else if(op_node->op.f->callbacks.free && op_node->op.private_data) {
953 op_node->op.f->callbacks.free(op_node->op.private_data);
954 }
955
956 for(int child_idx = 0; child_idx < op_node->op.child_count; child_idx++) {
957 AR_EXP_Free(op_node->op.children[child_idx]);
958 }
959
960 rm_free(op_node->op.children);
961}
962
963inline void AR_EXP_Free
964(

Callers 4

AR_EXP_ReduceToScalarFunction · 0.85
AR_EXP_FreeFunction · 0.85

Calls 3

Aggregate_FreeFunction · 0.85
AR_EXP_FreeFunction · 0.85
rm_freeFunction · 0.85

Tested by

no test coverage detected