Skip to content

Commit a23fee7

Browse files
rouaultgithub-actions[bot]
authored andcommitted
msOGRShapeFromWKT(): fix memory leak in error code path
Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=52363
1 parent f14482e commit a23fee7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Diff for: mapogr.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -5484,6 +5484,7 @@ shapeObj *msOGRShapeFromWKT(const char *string)
54845484
if( msOGRGeometryToShape( hGeom, shape,
54855485
wkbFlatten(OGR_G_GetGeometryType(hGeom)) )
54865486
== MS_FAILURE ) {
5487+
msFreeShape(shape);
54875488
free( shape );
54885489
shape = NULL;
54895490
}

0 commit comments

Comments
 (0)