| 525 | //------------------------------------------------------------------------------ |
| 526 | |
| 527 | static 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 |
| 549 | void ExecutionPlan_Free |
no test coverage detected