[postgis-tickets] [PostGIS] #3405: Memory leak in lwgeom_to_points

PostGIS trac at osgeo.org
Tue Dec 22 15:11:35 PST 2015


#3405: Memory leak in lwgeom_to_points
----------------------+---------------------------
  Reporter:  dbaston  |      Owner:  pramsey
      Type:  defect   |     Status:  new
  Priority:  medium   |  Milestone:  PostGIS 2.3.0
 Component:  postgis  |    Version:  trunk
Resolution:           |   Keywords:
----------------------+---------------------------

Comment (by dbaston):

 It's more than the test.  On line 1782, {{{lwgeom_release}}} is leaving
 {{{sub_mpt->geoms}}} intact, and the reference isn't being given to anyone
 else.  Adding a {{{lwfree(sub_mpt->geoms)}}} on the following line fixes
 it but somehow feels wrong.  Is it?

 What do you think about adding a {{{lwmpoint_add_lwmpoint}}} that would
 handle this situation?

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