Skip to content

Commit 1c93c80

Browse files
authored
lib/vector/Vlib: Fix Resource leak issue in remove_areas.c (OSGeo#5078)
1 parent 5fe1b99 commit 1c93c80

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/vector/Vlib/remove_areas.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,10 @@ int Vect_remove_small_areas_ext(struct Map_info *Map, double thresh,
192192
*removed_area = size_removed;
193193

194194
G_message(_("%d areas of total size %g removed"), nremoved, size_removed);
195+
Vect_destroy_list(AList);
196+
Vect_destroy_list(List);
197+
Vect_destroy_line_struct(Points);
198+
Vect_destroy_cats_struct(Cats);
195199

196200
return (nremoved);
197201
}

0 commit comments

Comments
 (0)