/
| 73 | |
| 74 | /*****************************************************************************/ |
| 75 | void *free_params (PJ_CONTEXT *ctx, paralist *start, int errlev) { |
| 76 | /***************************************************************************** |
| 77 | Companion to pj_default_destructor (below). Deallocates a linked list |
| 78 | of "+proj=xxx" initialization parameters. |
| 79 | |
| 80 | Also called from pj_init_ctx when encountering errors before the PJ |
| 81 | proper is allocated. |
| 82 | ******************************************************************************/ |
| 83 | paralist *t, *n; |
| 84 | for (t = start; t; t = n) { |
| 85 | n = t->next; |
| 86 | free(t); |
| 87 | } |
| 88 | proj_context_errno_set (ctx, errlev); |
| 89 | return (void *) nullptr; |
| 90 | } |
| 91 | |
| 92 | |
| 93 |
no test coverage detected