From 3319bbd624c5d02d330c7fcbe69cac6c903526eb Mon Sep 17 00:00:00 2001 From: Shubham Vasudeo Desai Date: Thu, 24 Oct 2024 19:15:12 -0400 Subject: [PATCH] changes --- lib/vector/Vlib/copy.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/vector/Vlib/copy.c b/lib/vector/Vlib/copy.c index fdd8a8a0a8..7abfd582b3 100644 --- a/lib/vector/Vlib/copy.c +++ b/lib/vector/Vlib/copy.c @@ -660,10 +660,11 @@ int Vect_copy_tables(struct Map_info *In, struct Map_info *Out, int field) _("Unable to copy table <%s> for layer %d from <%s> to <%s>"), Fi->table, Fi->number, map_name, Vect_get_name(Out)); G_free((void *)map_name); + Vect_destroy_field_info(Fi); return -1; } + Vect_destroy_field_info(Fi); } - Vect_destroy_field_info(Fi); return 0; }