Skip to content

Commit

Permalink
v.generalize: Fix Resource Leak issue in network.c (#4955)
Browse files Browse the repository at this point in the history
  • Loading branch information
ShubhamDesai authored Jan 16, 2025
1 parent bf01a26 commit 746692f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions vector/v.generalize/network.c
Original file line number Diff line number Diff line change
Expand Up @@ -258,5 +258,7 @@ int graph_generalization(struct Map_info *In, struct Map_info *Out,
Vect_destroy_list(prev[i]);
G_free(prev);
graph_free(&g);
Vect_destroy_line_struct(Points);
Vect_destroy_cats_struct(Cats);
return output;
}

0 comments on commit 746692f

Please sign in to comment.