[postgis-tickets] [PostGIS] #2949: Memory leaks test_mindistance2d_tolerance

PostGIS trac at osgeo.org
Wed Oct 1 06:59:17 PDT 2014


#2949: Memory leaks test_mindistance2d_tolerance
---------------------+------------------------------------------------------
 Reporter:  strk     |       Owner:  pramsey      
     Type:  defect   |      Status:  new          
 Priority:  blocker  |   Milestone:  PostGIS 2.1.5
Component:  postgis  |     Version:  2.1.x        
 Keywords:           |  
---------------------+------------------------------------------------------
Changes (by strk):

  * priority:  medium => blocker


Comment:

 The problem is with lwcurvepoly_construct_from_lwpoly, partially
 allocating new memory (for "rings") and partially copying pointer from
 input memory (bbox). Cloning the box and using lwgeom_release from the
 callers fixes it.

 Committed as 13021 in trunk (2.2.0) and r13022 in 2.1 branch (2.1.5)

-- 
Ticket URL: <http://trac.osgeo.org/postgis/ticket/2949#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