changeset 85634:88924f5f0f12

(init_environment): Fix tiny memory leak.
author Juanma Barranquero <lekktu@gmail.com>
date Thu, 25 Oct 2007 10:28:37 +0000
parents 04432aad93c8
children 28b29ce6804b
files src/w32.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
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;