PostGIS  2.4.9dev-r@@SVN_REVISION@@

◆ rtdealloc_config()

static void rtdealloc_config ( RTLOADERCFG config)
static

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

728  {
729  int i = 0;
730  if (config->rt_file_count) {
731  for (i = config->rt_file_count - 1; i >= 0; i--) {
732  rtdealloc(config->rt_file[i]);
733  if (config->rt_filename)
734  rtdealloc(config->rt_filename[i]);
735  }
736  rtdealloc(config->rt_file);
737  if (config->rt_filename)
738  rtdealloc(config->rt_filename);
739  }
740  if (config->schema != NULL)
741  rtdealloc(config->schema);
742  if (config->table != NULL)
743  rtdealloc(config->table);
744  if (config->raster_column != NULL)
745  rtdealloc(config->raster_column);
746  if (config->file_column_name != NULL)
747  rtdealloc(config->file_column_name);
748  if (config->overview_count > 0) {
749  if (config->overview != NULL)
750  rtdealloc(config->overview);
751  if (config->overview_table != NULL) {
752  for (i = config->overview_count - 1; i >= 0; i--)
753  rtdealloc(config->overview_table[i]);
754  rtdealloc(config->overview_table);
755  }
756  }
757  if (config->nband_count > 0 && config->nband != NULL)
758  rtdealloc(config->nband);
759  if (config->tablespace != NULL)
760  rtdealloc(config->tablespace);
761  if (config->idx_tablespace != NULL)
762  rtdealloc(config->idx_tablespace);
763 
764  rtdealloc(config);
765 }
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: