routine for freeing a generic aggregate function context
| 108 | |
| 109 | // routine for freeing a generic aggregate function context |
| 110 | void Aggregate_Free |
| 111 | ( |
| 112 | AR_FuncDesc *agg_func, |
| 113 | AggregateCtx *ctx |
| 114 | ) { |
| 115 | if(ctx == NULL) return; |
| 116 | |
| 117 | SIValue_Free(ctx->result); |
| 118 | |
| 119 | if(ctx->private_data) { |
| 120 | ASSERT(agg_func->callbacks.free != NULL); |
| 121 | agg_func->callbacks.free(ctx->private_data); |
| 122 | } |
| 123 | |
| 124 | rm_free(ctx); |
| 125 | } |
| 126 |
no test coverage detected