Skip to content

Commit da428d3

Browse files
rouaultgithub-actions[bot]
authored andcommitted
_msProcessAutoProjection(): fix memleak in error code path
Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=52158
1 parent b1d71b3 commit da428d3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

mapproject.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -731,6 +731,7 @@ static int _msProcessAutoProjection(projectionObj *p)
731731
"WMS/WFS AUTO/AUTO2 PROJECTION must be in the format "
732732
"'AUTO:proj_id,units_id,lon0,lat0' or 'AUTO2:crs_id,factor,lon0,lat0'(got '%s').\n",
733733
"_msProcessAutoProjection()", p->args[0]);
734+
msFreeCharArray(args, numargs);
734735
return -1;
735736
}
736737

0 commit comments

Comments
 (0)