PostGIS  2.3.7dev-r@@SVN_REVISION@@
void colmap_clean ( colmap map)

Definition at line 167 of file shpcommon.c.

References colmap_t::dbffieldnames, free(), colmap_t::pgfieldnames, and colmap_t::size.

Referenced by ShpDumperDestroy(), and ShpLoaderDestroy().

168 {
169  int i;
170  if (map->size)
171  {
172  for (i = 0; i < map->size; i++)
173  {
174  if (map->pgfieldnames[i]) free(map->pgfieldnames[i]);
175  if (map->dbffieldnames[i]) free(map->dbffieldnames[i]);
176  }
177  free(map->pgfieldnames);
178  free(map->dbffieldnames);
179  }
180 }
int size
Definition: shpcommon.h:61
char ** pgfieldnames
Definition: shpcommon.h:55
char ** dbffieldnames
Definition: shpcommon.h:58
void free(void *)

Here is the call graph for this function:

Here is the caller graph for this function: