From 934d2a2498a8b78dcebef34822fa703e2e5b1fa8 Mon Sep 17 00:00:00 2001 From: Shubham Vasudeo Desai Date: Sat, 18 Jan 2025 19:51:05 -0500 Subject: [PATCH] Fix Resource Leak issue --- general/g.gisenv/main.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/general/g.gisenv/main.c b/general/g.gisenv/main.c index a5c46f0de66..e2b2e448fa1 100644 --- a/general/g.gisenv/main.c +++ b/general/g.gisenv/main.c @@ -23,7 +23,6 @@ #include #include -#include static char *parse_variable(const char *, char **); @@ -225,7 +224,6 @@ char *parse_variable(const char *v_name, char **value) G_verbose_message(_("GRASS variable must be uppercase. Using '%s'."), u_name); } - Vect_delete(name); G_free(name); return u_name;