Opened 7 years ago

Closed 7 years ago

#4026 closed defect (fixed)

Memory leaks in test_rect_tree_contains_point

Reported by: Algunenano Owned by: Algunenano
Priority: medium Milestone: PostGIS 2.5.0
Component: liblwgeom Version: master
Keywords: Cc:

Description

==2979==ERROR: LeakSanitizer: detected memory leaks
Direct leak of 128 byte(s) in 1 object(s) allocated from:
    #0 0x55ff8a5fd3c1 in __interceptor_malloc (/home/raul/dev/public/postgis/liblwgeom/cunit/.libs/lt-cu_tester+0x13b3c1)
    #1 0x7faf98a0394b in rect_node_internal_new /home/raul/dev/public/postgis/liblwgeom/lwtree.c:566:20
    #2 0x7faf98a0394b in rect_nodes_merge /home/raul/dev/public/postgis/liblwgeom/lwtree.c:604
    #3 0x7faf98a0394b in rect_tree_from_lwcurvepoly /home/raul/dev/public/postgis/liblwgeom/lwtree.c:803
    #4 0x7faf98a0394b in rect_tree_from_lwgeom /home/raul/dev/public/postgis/liblwgeom/lwtree.c:868
    #5 0x55ff8a653495 in test_rect_tree_contains_point /home/raul/dev/public/postgis/liblwgeom/cunit/cu_measures.c:212:9


SUMMARY: AddressSanitizer: 4856 byte(s) leaked in 40 allocation(s).

GH PR: https://github.com/postgis/postgis/pull/216

I'll see if I can push this myself.

Change History (1)

comment:1 by algunenano, 7 years ago

Resolution: fixed
Status: assignedclosed

In 16434:

test_rect_tree_contains_point: Fix memory leaks

Closes #4026
Closes https://github.com/postgis/postgis/pull/216

Note: See TracTickets for help on using tickets.