diff src/w32.c @ 85634:88924f5f0f12

(init_environment): Fix tiny memory leak.
author Juanma Barranquero <lekktu@gmail.com>
date Thu, 25 Oct 2007 10:28:37 +0000
parents 5039706521c9
children 575156133467
line wrap: on
line diff
--- a/src/w32.c	Thu Oct 25 09:28:34 2007 +0000
+++ b/src/w32.c	Thu Oct 25 10:28:37 2007 +0000
@@ -1149,6 +1149,7 @@
 		/* Also ignore empty environment variables.  */
 		|| *lpval == 0)
 	      {
+		if (lpval) xfree (lpval);
 		lpval = env_vars[i].def_value;
 		dwType = REG_EXPAND_SZ;
 		dont_free = 1;