Permalink
Browse files

Fixing wrong allocation methods in WCS 2.0 GetCoverage.

  • Loading branch information...
constantinius committed Mar 22, 2018
1 parent ced579e commit fa811a59479651d064716b4b4d25abefe3b61970
Showing with 2 additions and 2 deletions.
  1. +2 −2 mapwcs20.c
@@ -3821,9 +3821,9 @@ static int msWCSGetCoverage20_GetBands(mapObj *map, layerObj *layer,
/* If we still don't have band names, use the band names from the coverage metadata */
if (band_ids == NULL) {
band_ids = (char**) msSmallCalloc(sizeof(char*), (cm->numbands + 1));
band_ids = (char**) CPLCalloc(sizeof(char*), (cm->numbands + 1));
for (i = 0; i < cm->numbands; ++i) {
band_ids[i] = msStrdup(cm->bands[i].name);
band_ids[i] = CPLStrdup(cm->bands[i].name);
}
}

0 comments on commit fa811a5

Please sign in to comment.