Skip to content

Commit

Permalink
lib/vector/Vlib: Fix Resource leak issue in remove_areas.c (#5078)
Browse files Browse the repository at this point in the history
  • Loading branch information
ShubhamDesai authored Feb 10, 2025
1 parent 5fe1b99 commit 1c93c80
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/vector/Vlib/remove_areas.c
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,10 @@ int Vect_remove_small_areas_ext(struct Map_info *Map, double thresh,
*removed_area = size_removed;

G_message(_("%d areas of total size %g removed"), nremoved, size_removed);
Vect_destroy_list(AList);
Vect_destroy_list(List);
Vect_destroy_line_struct(Points);
Vect_destroy_cats_struct(Cats);

return (nremoved);
}
Expand Down

0 comments on commit 1c93c80

Please sign in to comment.