[geos-devel] [GEOS] #783: 2 GEOS specific Memory leaks when using spatialite

GEOS geos-trac at osgeo.org
Tue Jul 5 05:55:56 PDT 2016


#783: 2 GEOS specific Memory leaks when using spatialite
-------------------------------------------------+-------------------------
 Reporter:  mj10777                              |       Owner:  geos-
                                                 |  devel@…
     Type:  defect                               |      Status:  new
 Priority:  trivial                              |   Milestone:  3.5.1
Component:  Default                              |     Version:  3.5.0
 Severity:  Unassigned                           |  Resolution:
 Keywords:  memory leak, GEOS_init_r,            |
  GeometryFactory                                |
-------------------------------------------------+-------------------------

Comment (by strk):

 One way to resolve this would be for the re-entrant interface not to use
 the lazily-created GeometryFactory singleton but rather use an explicitly
 created / explicitly deleted GeometryFactory.

 Doing so won't guarantee that the singleton won't be used by some internal
 operation, so the singleton leak is still pending as an issue.

 The singleton changed from a stack allocated to an heap-allocated objet
 with r3632, to fix #540, so if it has to change, #540 should be checked
 for not being still a problem

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


More information about the geos-devel mailing list