Commit 14c71d8b authored by Juanma Barranquero's avatar Juanma Barranquero
Browse files

(init_environment): Fix tiny memory leak.

parent 257b8401
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
......
......@@ -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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment