PostGIS  2.4.9dev-r@@SVN_REVISION@@

◆ colmap_clean()

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 != NULL){
171  if (map->size)
172  {
173  for (i = 0; i < map->size; i++)
174  {
175  if (map->pgfieldnames[i]) free(map->pgfieldnames[i]);
176  if (map->dbffieldnames[i]) free(map->dbffieldnames[i]);
177  }
178  free(map->pgfieldnames);
179  free(map->dbffieldnames);
180  }
181  }
182 }
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: