We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1c93c80 commit 4e3e14cCopy full SHA for 4e3e14c
lib/vector/Vlib/open_nat.c
@@ -53,8 +53,9 @@ int V1_open_old_nat(struct Map_info *Map, int update)
53
Map->dig_fp.file = G_fopen_old(path, GV_COOR_ELEMENT, Map->mapset);
54
55
if (Map->dig_fp.file == NULL) {
56
- G_warning(_("Unable to open coor file for vector map <%s>"),
57
- Vect_get_full_name(Map));
+ const char *map_name = Vect_get_full_name(Map);
+ G_warning(_("Unable to open coor file for vector map <%s>"), map_name);
58
+ G_free((void *)map_name);
59
return -1;
60
}
61
0 commit comments