PostGIS  2.1.10dev-r@@SVN_REVISION@@
static void rtdealloc_config ( RTLOADERCFG config)
static

Definition at line 721 of file raster2pgsql.c.

References raster_loader_config::file_column_name, raster_loader_config::idx_tablespace, raster_loader_config::nband, raster_loader_config::nband_count, raster_loader_config::overview, raster_loader_config::overview_count, raster_loader_config::overview_table, raster_loader_config::raster_column, raster_loader_config::rt_file, raster_loader_config::rt_file_count, raster_loader_config::rt_filename, rtdealloc(), raster_loader_config::schema, raster_loader_config::table, and raster_loader_config::tablespace.

Referenced by main().

721  {
722  int i = 0;
723  if (config->rt_file_count) {
724  for (i = config->rt_file_count - 1; i >= 0; i--) {
725  rtdealloc(config->rt_file[i]);
726  if (config->rt_filename)
727  rtdealloc(config->rt_filename[i]);
728  }
729  rtdealloc(config->rt_file);
730  if (config->rt_filename)
731  rtdealloc(config->rt_filename);
732  }
733  if (config->schema != NULL)
734  rtdealloc(config->schema);
735  if (config->table != NULL)
736  rtdealloc(config->table);
737  if (config->raster_column != NULL)
738  rtdealloc(config->raster_column);
739  if (config->file_column_name != NULL)
740  rtdealloc(config->file_column_name);
741  if (config->overview_count > 0) {
742  if (config->overview != NULL)
743  rtdealloc(config->overview);
744  if (config->overview_table != NULL) {
745  for (i = config->overview_count - 1; i >= 0; i--)
746  rtdealloc(config->overview_table[i]);
747  rtdealloc(config->overview_table);
748  }
749  }
750  if (config->nband_count > 0 && config->nband != NULL)
751  rtdealloc(config->nband);
752  if (config->tablespace != NULL)
753  rtdealloc(config->tablespace);
754  if (config->idx_tablespace != NULL)
755  rtdealloc(config->idx_tablespace);
756 
757  rtdealloc(config);
758 }
void rtdealloc(void *mem)
Definition: rt_api.c:882

Here is the call graph for this function:

Here is the caller graph for this function: