Skip to content

Commit

Permalink
GEOSLineMerge_r: Fix memory leak
Browse files Browse the repository at this point in the history
  • Loading branch information
Algunenano committed Jan 15, 2020
1 parent 22532f5 commit f40a4eb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions capi/geos_ts_c.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1897,6 +1897,7 @@ extern "C" {

auto out = gf->buildGeometry(lines->begin(), lines->end());
out->setSRID(g->getSRID());
delete lines;

return out.release();
});
Expand Down

0 comments on commit f40a4eb

Please sign in to comment.