From 0ec16905a25c492659408507e9c9eac97b6f3957 Mon Sep 17 00:00:00 2001 From: ShubhamDesai <42180509+ShubhamDesai@users.noreply.github.com> Date: Fri, 31 Jan 2025 11:57:33 -0500 Subject: [PATCH] v.to.db: Fix Resource Leak issue in lines.c (#4965) --- vector/v.to.db/lines.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/vector/v.to.db/lines.c b/vector/v.to.db/lines.c index 5550c393a77..9cafd890e31 100644 --- a/vector/v.to.db/lines.c +++ b/vector/v.to.db/lines.c @@ -264,6 +264,11 @@ int read_lines(struct Map_info *Map) } G_percent(line_num, nlines, 2); } + Vect_destroy_line_struct(EndPoints); + Vect_destroy_cats_struct(RCats); + Vect_destroy_line_struct(Points); + Vect_destroy_cats_struct(LCats); + Vect_destroy_cats_struct(Cats); return 0; }