Opened 6 years ago

Closed 5 years ago

#919 closed defect (fixed)

memory leak in geos::index::strtree::SIRtree::insert()

Reported by: basiliscos Owned by: dbaston
Priority: major Milestone:
Component: Default Version: 3.6.2
Severity: Unassigned Keywords:
Cc:

Description

#include <geos/index/strtree/SIRtree.h>

int main() {
    while(1) {
        geos::index::strtree::SIRtree t;
        t.insert(1, 5, &t);
    }
    return 0;
}


When I run this sample program, it consumes all my RAM.

Please, fix.

Thank you.

Change History (2)

comment:1 by dbaston, 5 years ago

Owner: changed from geos-devel@… to dbaston

comment:2 by dbaston, 5 years ago

Resolution: fixed
Status: newclosed

Fixed in master and 3.7. Not sure why commit references didn't show up in ticket. The fix uses unique_ptr and doesn't seem work coming up with a separate fix for 3.6.x.

Note: See TracTickets for help on using tickets.