PostGIS  2.2.8dev-r@@SVN_REVISION@@

◆ ReleasePolygons()

void ReleasePolygons ( Ring **  polys,
int  npolys 
)

Definition at line 577 of file shp2pgsql-core.c.

References free(), struct_ring::list, and struct_ring::next.

Referenced by GeneratePolygonGeometry().

578 {
579  int pi;
580 
581  /* Release all memory */
582  for (pi = 0; pi < npolys; pi++)
583  {
584  Ring *Poly, *temp;
585  Poly = polys[pi];
586  while (Poly != NULL)
587  {
588  temp = Poly;
589  Poly = Poly->next;
590  free(temp->list);
591  free(temp);
592  }
593  }
594 
595  free(polys);
596 }
struct struct_ring * next
Point * list
void free(void *)
Here is the call graph for this function:
Here is the caller graph for this function: