PostGIS  2.5.0beta2dev-r@@SVN_REVISION@@

◆ rtdealloc_config()

static void rtdealloc_config ( RTLOADERCFG config)
static

Definition at line 731 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().

731  {
732  int i = 0;
733  if (config->rt_file_count) {
734  for (i = config->rt_file_count - 1; i >= 0; i--) {
735  rtdealloc(config->rt_file[i]);
736  if (config->rt_filename)
737  rtdealloc(config->rt_filename[i]);
738  }
739  rtdealloc(config->rt_file);
740  if (config->rt_filename)
741  rtdealloc(config->rt_filename);
742  }
743  if (config->schema != NULL)
744  rtdealloc(config->schema);
745  if (config->table != NULL)
746  rtdealloc(config->table);
747  if (config->raster_column != NULL)
748  rtdealloc(config->raster_column);
749  if (config->file_column_name != NULL)
750  rtdealloc(config->file_column_name);
751  if (config->overview_count > 0) {
752  if (config->overview != NULL)
753  rtdealloc(config->overview);
754  if (config->overview_table != NULL) {
755  for (i = config->overview_count - 1; i >= 0; i--)
756  rtdealloc(config->overview_table[i]);
757  rtdealloc(config->overview_table);
758  }
759  }
760  if (config->nband_count > 0 && config->nband != NULL)
761  rtdealloc(config->nband);
762  if (config->tablespace != NULL)
763  rtdealloc(config->tablespace);
764  if (config->idx_tablespace != NULL)
765  rtdealloc(config->idx_tablespace);
766 
767  rtdealloc(config);
768 }
void rtdealloc(void *mem)
Definition: rt_context.c:186
Here is the call graph for this function:
Here is the caller graph for this function: