aboutsummaryrefslogtreecommitdiffstats
path: root/src/w32.c
diff options
context:
space:
mode:
authorJuanma Barranquero2007-10-25 10:38:42 +0000
committerJuanma Barranquero2007-10-25 10:38:42 +0000
commita8d6819ab32b70c5ea71b22bde1601b99e646b4d (patch)
treeb55f481978f248f919ba503443f7e49ef3f6f88b /src/w32.c
parent428153fcb95fefca3038aeea472d0b2ec9ccab99 (diff)
downloademacs-a8d6819ab32b70c5ea71b22bde1601b99e646b4d.tar.gz
emacs-a8d6819ab32b70c5ea71b22bde1601b99e646b4d.zip
(init_environment): Fix tiny memory leak.
Diffstat (limited to 'src/w32.c')
-rw-r--r--src/w32.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/w32.c b/src/w32.c
index 2b54f3d59dc..743eac99e7c 100644
--- a/src/w32.c
+++ b/src/w32.c
@@ -1112,6 +1112,7 @@ init_environment (char ** argv)
1112 /* Also ignore empty environment variables. */ 1112 /* Also ignore empty environment variables. */
1113 || *lpval == 0) 1113 || *lpval == 0)
1114 { 1114 {
1115 if (lpval) xfree (lpval);
1115 lpval = env_vars[i].def_value; 1116 lpval = env_vars[i].def_value;
1116 dwType = REG_EXPAND_SZ; 1117 dwType = REG_EXPAND_SZ;
1117 dont_free = 1; 1118 dont_free = 1;