aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog4
-rw-r--r--src/w32.c1
2 files changed, 5 insertions, 0 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index c593aa83c0b..c5ebc4ab5a6 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,7 @@
12007-10-25 Juanma Barranquero <lekktu@gmail.com>
2
3 * w32.c (init_environment): Fix tiny memory leak.
4
12007-10-24 Jason Rumney <jasonr@gnu.org> 52007-10-24 Jason Rumney <jasonr@gnu.org>
2 6
3 * w32fns.c: Include math.h. 7 * w32fns.c: Include math.h.
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;