1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2025-01-23 18:47:57 +00:00

(init_environment): Fix tiny memory leak.

This commit is contained in:
Juanma Barranquero 2007-10-25 10:28:59 +00:00
parent 257b840151
commit 14c71d8b5d
2 changed files with 5 additions and 0 deletions

View File

@ -1,3 +1,7 @@
2007-10-25 Juanma Barranquero <lekktu@gmail.com>
* w32.c (init_environment): Fix tiny memory leak.
2007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
Make `window-system' into a keyboard-local variable (rather than

View File

@ -1149,6 +1149,7 @@ init_environment (char ** argv)
/* Also ignore empty environment variables. */
|| *lpval == 0)
{
if (lpval) xfree (lpval);
lpval = env_vars[i].def_value;
dwType = REG_EXPAND_SZ;
dont_free = 1;