Commit a8d6819a authored by Juanma Barranquero's avatar Juanma Barranquero
Browse files

(init_environment): Fix tiny memory leak.

parent 428153fc
2007-10-25 Juanma Barranquero <lekktu@gmail.com>
* w32.c (init_environment): Fix tiny memory leak.
2007-10-24 Jason Rumney <jasonr@gnu.org>
 
* w32fns.c: Include math.h.
......
......@@ -1112,6 +1112,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