Skip to content

Commit

Permalink
added vect_destroy_field_info
Browse files Browse the repository at this point in the history
  • Loading branch information
Shubham Vasudeo Desai committed Oct 25, 2024
1 parent 3319bbd commit 59e912e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/vector/Vlib/copy.c
Original file line number Diff line number Diff line change
Expand Up @@ -648,6 +648,7 @@ int Vect_copy_tables(struct Map_info *In, struct Map_info *Out, int field)
if (Fi == NULL) {
G_warning(_("Database connection not defined for layer %d"),
In->dblnk->field[i].number);
Vect_destroy_field_info(Fi);
return -1;
}
if (field > 0 && Fi->number != field)
Expand Down

0 comments on commit 59e912e

Please sign in to comment.