free an ExecutionCTX struct and its inner fields
| 202 | |
| 203 | // free an ExecutionCTX struct and its inner fields |
| 204 | void 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 |
no test coverage detected