Skip to content

Commit

Permalink
Merge pull request #6703 from MapServer/backport-6698-to-branch-7-6
Browse files Browse the repository at this point in the history
[Backport branch-7-6] loadProjection(): fix memleak in case of repeated PROJECTION block
  • Loading branch information
rouault committed Oct 10, 2022
2 parents 160b9ea + 907cd5d commit 14574d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mapfile.c
Expand Up @@ -1142,7 +1142,7 @@ static int loadProjection(projectionObj *p)

p->gt.need_geotransform = MS_FALSE;

if ( p->proj != NULL ) {
if ( p->proj != NULL || p->numargs != 0 ) {
msSetError(MS_MISCERR, "Projection is already initialized. Multiple projection definitions are not allowed in this object. (line %d)",
"loadProjection()", msyylineno);
return(-1);
Expand Down

0 comments on commit 14574d6

Please sign in to comment.