[postgis-devel] [PostGIS] #1104: lwgeom_homogenize does a shallow copy
PostGIS
trac at osgeo.org
Mon Jul 4 06:55:54 PDT 2011
#1104: lwgeom_homogenize does a shallow copy
----------------------+-----------------------------------------------------
Reporter: strk | Owner: pramsey
Type: defect | Status: closed
Priority: medium | Milestone: PostGIS 2.0.0
Component: postgis | Version: trunk
Resolution: invalid | Keywords:
----------------------+-----------------------------------------------------
Changes (by strk):
* status: new => closed
* resolution: => invalid
Comment:
Ok, I checked, lwcollection_homogenize uses lwgeom_clone, which in turn
doesn't copy POINTARRAY memory (lwgeom_clone_deep would do that).
Then I guess this can't be called a bug on itself, but a general need to
cleanup the memory management framework. For now I fixed the test to use
lwgeom_release which supposedly does a shallow free (but still fails to
drop some memory...)
--
Ticket URL: <http://trac.osgeo.org/postgis/ticket/1104#comment:1>
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-devel
mailing list