routine for freeing a reduction function private data
| 24 | |
| 25 | // routine for freeing a reduction function private data |
| 26 | void ListReduceCtx_Free |
| 27 | ( |
| 28 | void *ctx_ptr |
| 29 | ) { |
| 30 | ListReduceCtx *ctx = ctx_ptr; |
| 31 | |
| 32 | if(ctx->exp) { |
| 33 | AR_EXP_Free(ctx->exp); |
| 34 | } |
| 35 | |
| 36 | if(ctx->record) { |
| 37 | rax *mapping = ctx->record->mapping; |
| 38 | Record_Free(ctx->record); |
| 39 | raxFree(mapping); |
| 40 | } |
| 41 | |
| 42 | rm_free(ctx); |
| 43 | } |
| 44 | |
| 45 | // Routine for cloning a comprehension function's private data. |
| 46 | void *ListReduceCtx_Clone |
nothing calls this directly
no test coverage detected