[geos-devel] [GEOS] #790: Memory leak in WKBReader.read?

GEOS geos-trac at osgeo.org
Sun Sep 25 02:15:32 PDT 2016

#790: Memory leak in WKBReader.read?
 Reporter:  edzer       |       Owner:  geos-devel@…
     Type:  defect      |      Status:  new
 Priority:  major       |   Milestone:  3.5.1
Component:  Default     |     Version:  3.5.0
 Severity:  Unassigned  |  Resolution:
 Keywords:              |

Comment (by edzer):

 I failed to use the auto_ptr:


     typedef std::auto_ptr<geos::geom::Geometry> GeomPtr;
     GeomPtr pt(r.read(sh));


 solved my leak. Thanks a lot!

Ticket URL: <http://trac.osgeo.org/geos/ticket/790#comment:3>
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