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