PostGIS  2.4.9dev-r@@SVN_REVISION@@

◆ ReleasePolygons()

void ReleasePolygons ( Ring **  polys,
int  npolys 
)

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

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

Referenced by GeneratePolygonGeometry().

587 {
588  int pi;
589 
590  /* Release all memory */
591  for (pi = 0; pi < npolys; pi++)
592  {
593  Ring *Poly, *temp;
594  Poly = polys[pi];
595  while (Poly != NULL)
596  {
597  temp = Poly;
598  Poly = Poly->next;
599  free(temp->list);
600  free(temp);
601  }
602  }
603 
604  free(polys);
605 }
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: