Mercurial > emacs
comparison src/w32.c @ 79222:0ff71882c6a7
(init_environment): Fix tiny memory leak.
author | Juanma Barranquero <lekktu@gmail.com> |
---|---|
date | Thu, 25 Oct 2007 10:34:36 +0000 |
parents | 87875c00eb06 |
children | e0bc2893dafe |
comparison
equal
deleted
inserted
replaced
79221:dea51733fd48 | 79222:0ff71882c6a7 |
---|---|
1110 | 1110 |
1111 if ((lpval = w32_get_resource (env_vars[i].name, &dwType)) == NULL | 1111 if ((lpval = w32_get_resource (env_vars[i].name, &dwType)) == NULL |
1112 /* Also ignore empty environment variables. */ | 1112 /* Also ignore empty environment variables. */ |
1113 || *lpval == 0) | 1113 || *lpval == 0) |
1114 { | 1114 { |
1115 if (lpval) xfree (lpval); | |
1115 lpval = env_vars[i].def_value; | 1116 lpval = env_vars[i].def_value; |
1116 dwType = REG_EXPAND_SZ; | 1117 dwType = REG_EXPAND_SZ; |
1117 dont_free = 1; | 1118 dont_free = 1; |
1118 } | 1119 } |
1119 | 1120 |