Skip to content

Commit

Permalink
Fix Resource Leak issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Shubham Vasudeo Desai committed Jan 19, 2025
1 parent b25c727 commit 934d2a2
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions general/g.gisenv/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@

#include <grass/gis.h>
#include <grass/glocale.h>
#include <grass/vector.h>

static char *parse_variable(const char *, char **);

Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 934d2a2

Please sign in to comment.