MCPcopy Create free account
hub / github.com/OSGeo/PROJ / free_params

Function free_params

src/malloc.cpp:73–88  ·  view source on GitHub ↗

/

Source from the content-addressed store, hash-verified

71
72/*****************************************************************************/
73void *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() */

Callers 3

string_to_paralistFunction · 0.85
pj_default_destructorFunction · 0.85

Calls 1

proj_context_errno_setFunction · 0.85

Tested by

no test coverage detected