[geos-devel] [GEOS] #342: Prepared MultiPolygon predicates leak memory

GEOS geos-trac at osgeo.org
Sat Apr 24 13:50:12 EDT 2010


#342: Prepared MultiPolygon predicates leak memory
------------------------+---------------------------------------------------
 Reporter:  olt         |       Owner:  geos-devel at lists.osgeo.org                    
     Type:  defect      |      Status:  new                                           
 Priority:  major       |   Milestone:                                                
Component:  Default     |     Version:  svn-trunk                                     
 Severity:  Unassigned  |    Keywords:  memory leak, prepared geometries, multipolygon
------------------------+---------------------------------------------------
 Using prepared binary predicates like 'contains' with MultiPolygons leaks
 memory.
 I have tested it with 3.1.1, 3.2.0 (using Shapely, which uses the C API)
 and latest trunk (r2982) with the attached C test program. So it might be
 a C API only bug.

 The test program does not leak if the predicate is called directly with
 the MultiPolygon (no prepared geometry) or if the prepared geometry is
 only a polygon.

-- 
Ticket URL: <http://trac.osgeo.org/geos/ticket/342>
GEOS <http://geos.refractions.net/>
GEOS (Geometry Engine - Open Source) is a C++ port of the Java Topology Suite (JTS).


More information about the geos-devel mailing list