[postgis-tickets] [PostGIS] #3569: ST_CollectionHomogenize sometimes returns reference to argument

PostGIS trac at osgeo.org
Mon Sep 12 17:36:56 PDT 2016


#3569: ST_CollectionHomogenize sometimes returns reference to argument
----------------------+---------------------------
  Reporter:  dbaston  |      Owner:  pramsey
      Type:  defect   |     Status:  new
  Priority:  blocker  |  Milestone:  PostGIS 2.2.3
 Component:  postgis  |    Version:  2.2.x
Resolution:           |   Keywords:
----------------------+---------------------------

Comment (by dbaston):

 Replying to [comment:3 pramsey]:
 > Fixing homogenize to return a full copy seems preferable to deep cloning
 the return from homogenize, ISTM.

 Agreed.  I don't think we actually need a clone though, I think it's
 sufficient to just avoid freeing our input GSERIALIZED before we've
 serialized our output.  If there are no concerns with the attached patch
 that does this, I'll commit it.

--
Ticket URL: <https://trac.osgeo.org/postgis/ticket/3569#comment:4>
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