Skip to content

Commit

Permalink
lib/vector/Vlib: Fix Resource Leak issue in net_build.c (#5038)
Browse files Browse the repository at this point in the history
  • Loading branch information
ShubhamDesai authored Feb 5, 2025
1 parent def6697 commit fa0dbb0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/vector/Vlib/net_build.c
Original file line number Diff line number Diff line change
Expand Up @@ -666,6 +666,8 @@ int Vect_net_ttb_build_graph(struct Map_info *Map, int ltype, int afield,
dglInitializeSPCache(gr, &(Map->dgraph.spCache));

G_message(_("Graph was built"));
Vect_destroy_field_info(Fi);
db_free_column(Column);
return 0;
}

Expand Down Expand Up @@ -1061,6 +1063,8 @@ int Vect_net_build_graph(struct Map_info *Map, int ltype, int afield,
dglInitializeSPCache(gr, &(Map->dgraph.spCache));

G_message(_("Graph was built"));
Vect_destroy_field_info(Fi);
db_free_column(Column);

return 0;
}

0 comments on commit fa0dbb0

Please sign in to comment.