mirror of
https://git.osgeo.org/gitea/postgis/postgis
synced 2024-10-25 09:32:46 +00:00
Removed memory leak in geos2postgis polygon conversion.
git-svn-id: http://svn.osgeo.org/postgis/trunk@1407 b70326c6-7e19-0410-871a-916f4a2858ee
This commit is contained in:
parent
a9ebea2780
commit
0942e0dc46
|
@ -2133,6 +2133,8 @@ lwpoly_from_geometry(Geometry *g, char want3d)
|
|||
ptoff+=npoints;
|
||||
}
|
||||
|
||||
GEOSdeleteChar( (char*) pts);
|
||||
|
||||
// Construct LWPOLY
|
||||
poly = lwpoly_construct(SRID, NULL, nrings+1, rings);
|
||||
|
||||
|
|
Loading…
Reference in a new issue