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

Function ExecutionCtx_Free

src/commands/execution_ctx.c:204–221  ·  view source on GitHub ↗

free an ExecutionCTX struct and its inner fields

Source from the content-addressed store, hash-verified

202
203// free an ExecutionCTX struct and its inner fields
204void ExecutionCtx_Free
205(
206 ExecutionCtx *ctx // execution context to free
207) {
208 if(ctx == NULL) {
209 return;
210 }
211
212 if(ctx->plan != NULL) {
213 ExecutionPlan_Free(ctx->plan);
214 }
215
216 if(ctx->ast != NULL) {
217 AST_Free(ctx->ast);
218 }
219
220 rm_free(ctx);
221}
222

Callers 3

_ExecuteQueryFunction · 0.85
_queryFunction · 0.85
Graph_ExplainFunction · 0.85

Calls 3

ExecutionPlan_FreeFunction · 0.85
AST_FreeFunction · 0.85
rm_freeFunction · 0.85

Tested by

no test coverage detected