Opened 6 years ago
Closed 6 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 , 6 years ago
Owner: | changed from | to
---|
comment:2 by , 6 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
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.