[postgis-tickets] [PostGIS] #3909: Memory leak in lwgeom_remove_repeated_points_in_place
PostGIS
trac at osgeo.org
Wed Oct 18 07:41:20 PDT 2017
#3909: Memory leak in lwgeom_remove_repeated_points_in_place
------------------------+---------------------------
Reporter: Algunenano | Owner: strk
Type: defect | Status: new
Priority: high | Milestone: PostGIS 2.5.0
Component: liblwgeom | Version: trunk
Keywords: |
------------------------+---------------------------
Leak due to removed points memory not being free'd.
Example:
{{{
Indirect leak of 1472 byte(s) in 23 object(s) allocated from:
#0 0x7f07c9071ae9 in __interceptor_malloc /build/gcc-
multilib/src/gcc/libsanitizer/asan/asan_malloc_linux.cc:62
#1 0x7f07c8c7799e in ptarray_construct_empty
/home/raul/dev/public/postgis/liblwgeom/ptarray.c:84
#2 0x7f07c8cbeced in wkt_parser_ptarray_new
/home/raul/dev/public/postgis/liblwgeom/lwin_wkt.c:306
#3 0x7f07c8cb6209 in wkt_yyparse
/home/raul/dev/public/postgis/liblwgeom/lwin_wkt_parse.y:507
#4 0x7f07c8cb80e3 in lwgeom_parse_wkt
/home/raul/dev/public/postgis/liblwgeom/lwin_wkt_parse.y:68
#5 0x7f07c8cc1934 in lwgeom_from_wkt
/home/raul/dev/public/postgis/liblwgeom/lwin_wkt.c:908
#6 0x55f62e8385a3 in test_lwgeom_remove_repeated_points
/home/raul/dev/public/postgis/liblwgeom/cunit/cu_algorithm.c:1028
#7 0x7f07c87f6087 in run_single_test /tmp/yaourt-tmp-raul/aur-
cunit/src/CUnit-2.1-3/CUnit/Sources/Framework/TestRun.c:991
}}}
Github's PR: https://github.com/postgis/postgis/pull/167
--
Ticket URL: <https://trac.osgeo.org/postgis/ticket/3909>
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