diff options
| author | Juanma Barranquero | 2007-10-25 10:38:42 +0000 |
|---|---|---|
| committer | Juanma Barranquero | 2007-10-25 10:38:42 +0000 |
| commit | a8d6819ab32b70c5ea71b22bde1601b99e646b4d (patch) | |
| tree | b55f481978f248f919ba503443f7e49ef3f6f88b /src/w32.c | |
| parent | 428153fcb95fefca3038aeea472d0b2ec9ccab99 (diff) | |
| download | emacs-a8d6819ab32b70c5ea71b22bde1601b99e646b4d.tar.gz emacs-a8d6819ab32b70c5ea71b22bde1601b99e646b4d.zip | |
(init_environment): Fix tiny memory leak.
Diffstat (limited to 'src/w32.c')
| -rw-r--r-- | src/w32.c | 1 |
1 files changed, 1 insertions, 0 deletions
| @@ -1112,6 +1112,7 @@ init_environment (char ** argv) | |||
| 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; |