Skip to content

Commit

Permalink
v.to.db: Fix Resource Leak issue in lines.c (#4965)
Browse files Browse the repository at this point in the history
  • Loading branch information
ShubhamDesai authored Jan 31, 2025
1 parent 3694219 commit 0ec1690
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions vector/v.to.db/lines.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

0 comments on commit 0ec1690

Please sign in to comment.