Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fixing wrong allocation methods in WCS 2.0 GetCoverage.
  • Loading branch information
constantinius committed Mar 22, 2018
1 parent ced579e commit fa811a5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mapwcs20.c
Expand Up @@ -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);
}
}

Expand Down

0 comments on commit fa811a5

Please sign in to comment.