[postgis-tickets] [PostGIS] #2947: Memory leak in lwgeom_make_valid

PostGIS trac at osgeo.org
Wed Oct 1 03:31:26 PDT 2014


#2947: Memory leak in lwgeom_make_valid
---------------------+------------------------------------------------------
 Reporter:  strk     |       Owner:  strk         
     Type:  defect   |      Status:  new          
 Priority:  blocker  |   Milestone:  PostGIS 2.1.5
Component:  postgis  |     Version:  2.1.x        
 Keywords:           |  
---------------------+------------------------------------------------------
 The lwgeom_make_valid function leaks memory, it's exposed by the
 test_lwgeom_make_valid test already:
 {{{
 ==13713== 240 (16 direct, 224 indirect) bytes in 1 blocks are definitely
 lost in loss record 10 of 10
 ==13713==    at 0x4C2AB80: malloc (in /usr/lib/valgrind
 /vgpreload_memcheck-amd64-linux.so)
 ==13713==    by 0x4E7E23B: GEOS2LWGEOM (lwgeom_geos.c:154)
 ==13713==    by 0x4E80C10: lwgeom_make_valid (lwgeom_geos_clean.c:1050)
 ==13713==    by 0x40904C: test_lwgeom_make_valid (cu_clean.c:73)
 ==13713==    by 0x50A3C99: ??? (in /usr/lib/libcunit.so.1.0.1)
 ==13713==    by 0x50A4474: CU_run_test (in /usr/lib/libcunit.so.1.0.1)
 ==13713==    by 0x40542A: main (cu_tester.c:187)
 }}}

 PostGIS-2.0 is _NOT_ affected

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