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

Function _ExecutionPlan_FreeInternals

src/execution_plan/execution_plan.c:527–546  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

525//------------------------------------------------------------------------------
526
527static void _ExecutionPlan_FreeInternals
528(
529 ExecutionPlan *plan
530) {
531 if(plan == NULL) return;
532
533 if(plan->query_graph) {
534 QueryGraph_Free(plan->query_graph);
535 }
536 if(plan->record_map != NULL) {
537 raxFree(plan->record_map);
538 }
539 if(plan->record_pool != NULL) {
540 ObjectPool_Free(plan->record_pool);
541 }
542 if(plan->ast_segment != NULL) {
543 AST_Free(plan->ast_segment);
544 }
545 rm_free(plan);
546}
547
548// free the execution plans and all of the operations
549void ExecutionPlan_Free

Callers 1

ExecutionPlan_FreeFunction · 0.85

Calls 4

QueryGraph_FreeFunction · 0.85
ObjectPool_FreeFunction · 0.85
AST_FreeFunction · 0.85
rm_freeFunction · 0.85

Tested by

no test coverage detected