| 114 | } |
| 115 | |
| 116 | context_p context_alloc(enum osips_context type) |
| 117 | { |
| 118 | context_p ctx; |
| 119 | |
| 120 | ctx = pkg_malloc(context_size(type)); |
| 121 | if (!ctx) { |
| 122 | LM_ERR("no more pkg mem\n"); |
| 123 | return NULL; |
| 124 | } |
| 125 | |
| 126 | return ctx; |
| 127 | } |
| 128 | |
| 129 | |
| 130 | int ensure_global_context(void) |
no outgoing calls
no test coverage detected