From 4854f491a00d482bfaad1817113c39f4b90fb06f Mon Sep 17 00:00:00 2001 From: ShubhamDesai <42180509+ShubhamDesai@users.noreply.github.com> Date: Tue, 5 Nov 2024 09:31:05 -0500 Subject: [PATCH] lib/vector/Vlib: Fix resource leak issue in clean_nodes.c (#4627) fix resource leak issue Co-authored-by: Shubham Vasudeo Desai --- lib/vector/Vlib/clean_nodes.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/vector/Vlib/clean_nodes.c b/lib/vector/Vlib/clean_nodes.c index bff6d502129..2ba34985549 100644 --- a/lib/vector/Vlib/clean_nodes.c +++ b/lib/vector/Vlib/clean_nodes.c @@ -241,6 +241,10 @@ int Vect_clean_small_angles_at_nodes(struct Map_info *Map, int otype, } } G_verbose_message(_("Modifications: %d"), nmodif); + Vect_destroy_line_struct(Points); + Vect_destroy_cats_struct(OCats); + Vect_destroy_cats_struct(LCats); + Vect_destroy_cats_struct(SCats); return (nmodif); }