Skip to content

Commit

Permalink
v.kernel: Fix resource Leak issue in main.c (#4506)
Browse files Browse the repository at this point in the history
Resource Leak
  • Loading branch information
ShubhamDesai authored Oct 15, 2024
1 parent a98691f commit f241532
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion vector/v.kernel/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -769,7 +769,9 @@ double compute_all_net_distances(struct Map_info *In, struct Map_info *Net,
G_debug(3, " kk = %d", kk);
}
}

Vect_destroy_line_struct(APoints);
Vect_destroy_line_struct(BPoints);
Vect_destroy_boxlist(List);
return (kk);
}

Expand Down

0 comments on commit f241532

Please sign in to comment.