Skip to content

Commit

Permalink
lib/vector/Vlib: Fix resource leak issue in clean_nodes.c (#4627)
Browse files Browse the repository at this point in the history
fix resource leak issue

Co-authored-by: Shubham Vasudeo Desai <[email protected]>
  • Loading branch information
ShubhamDesai and Shubham Vasudeo Desai authored Nov 5, 2024
1 parent f7537c4 commit 4854f49
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/vector/Vlib/clean_nodes.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

0 comments on commit 4854f49

Please sign in to comment.