| 168 | } |
| 169 | |
| 170 | int pop_pushed_global_context(void) |
| 171 | { |
| 172 | if (ctx_stack_idx==0) { |
| 173 | LM_ERR("nothing to pop form the stack\n"); |
| 174 | return -1; |
| 175 | } |
| 176 | |
| 177 | context_destroy(CONTEXT_GLOBAL, current_processing_ctx); |
| 178 | context_free(current_processing_ctx); |
| 179 | |
| 180 | current_processing_ctx = ctx_stack[--ctx_stack_idx]; |
| 181 | return 0; |
| 182 | } |
| 183 | |
| 184 | |
| 185 | void clear_global_context(void) |
no test coverage detected