aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJuanma Barranquero2007-10-25 10:28:59 +0000
committerJuanma Barranquero2007-10-25 10:28:59 +0000
commit14c71d8b5d289388ff65895a9a1df722d325a19d (patch)
tree47820c3ad664d54b6cf32c498beb2ded82276e07 /src
parent257b840151e9368152f001c90384434344dfc7ed (diff)
downloademacs-14c71d8b5d289388ff65895a9a1df722d325a19d.tar.gz
emacs-14c71d8b5d289388ff65895a9a1df722d325a19d.zip
(init_environment): Fix tiny memory leak.
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 5785c3df247..aab2b3e6210 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-25 Stefan Monnier <monnier@iro.umontreal.ca> 52007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
2 6
3 Make `window-system' into a keyboard-local variable (rather than 7 Make `window-system' into a keyboard-local variable (rather than
diff --git a/src/w32.c b/src/w32.c
index 500e85733b2..16bec44f610 100644
--- a/src/w32.c
+++ b/src/w32.c
@@ -1149,6 +1149,7 @@ init_environment (char ** argv)
1149 /* Also ignore empty environment variables. */ 1149 /* Also ignore empty environment variables. */
1150 || *lpval == 0) 1150 || *lpval == 0)
1151 { 1151 {
1152 if (lpval) xfree (lpval);
1152 lpval = env_vars[i].def_value; 1153 lpval = env_vars[i].def_value;
1153 dwType = REG_EXPAND_SZ; 1154 dwType = REG_EXPAND_SZ;
1154 dont_free = 1; 1155 dont_free = 1;