[postgis-tickets] [PostGIS] #2947: Memory leak in lwgeom_make_valid
PostGIS
trac at osgeo.org
Wed Oct 1 07:25:06 PDT 2014
#2947: Memory leak in lwgeom_make_valid
---------------------+------------------------------------------------------
Reporter: strk | Owner: strk
Type: defect | Status: new
Priority: blocker | Milestone: PostGIS 2.1.5
Component: postgis | Version: 2.1.x
Keywords: |
---------------------+------------------------------------------------------
Comment(by strk):
The problem is with collection input when output is not a collection
anymore, so basically in lwgeom_as_multi, which does an lwgeom_clone() of
the passed geometry thus NOT cloning the pointarray. As a result neither
of the two POINTARRAY references are marked as READONLY so you can't free
one w/out the other being a double-free.
--
Ticket URL: <http://trac.osgeo.org/postgis/ticket/2947#comment:3>
PostGIS <http://trac.osgeo.org/postgis/>
The PostGIS Trac is used for bug, enhancement & task tracking, a user and developer wiki, and a view into the subversion code repository of PostGIS project.
More information about the postgis-tickets
mailing list