Skip to content

Commit

Permalink
Merge pull request #42 from SeverinDenisenko/41-fix-memory-leak-in-tr…
Browse files Browse the repository at this point in the history
…iangle

Fix memory leak in triangulation code
  • Loading branch information
SeverinDenisenko authored Jan 21, 2025
2 parents 29c9718 + 5c61218 commit e80112b
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions astroimsumlib/delaney.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,13 @@ array_t<triangle_t> triangulate_points(array_t<point_t> points)
}

free(out.trianglelist);
free(out.pointattributelist);
free(out.pointmarkerlist);
free(out.regionlist);
free(out.pointlist);
free(in.pointattributelist);
free(in.pointmarkerlist);
free(in.regionlist);

return result;
}
Expand Down

0 comments on commit e80112b

Please sign in to comment.