diff options
| author | Paul Eggert | 2017-05-16 14:19:36 -0700 |
|---|---|---|
| committer | Paul Eggert | 2017-05-16 14:36:40 -0700 |
| commit | f7c07930b581b1bcfdfb1874b6883233516bdf11 (patch) | |
| tree | 754594e8d84b61af01a284c46400e505500d7861 /src/editfns.c | |
| parent | 69d0a8500cabc4c034e2d6d873af54a8e8362e3b (diff) | |
| download | emacs-f7c07930b581b1bcfdfb1874b6883233516bdf11.tar.gz emacs-f7c07930b581b1bcfdfb1874b6883233516bdf11.zip | |
Fix minor timezone memory leak
* src/editfns.c (wall_clock_tz): Remove; unused.
Diffstat (limited to 'src/editfns.c')
| -rw-r--r-- | src/editfns.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/editfns.c b/src/editfns.c index ecb8e3f0838..75eb75a7293 100644 --- a/src/editfns.c +++ b/src/editfns.c | |||
| @@ -81,10 +81,8 @@ static Lisp_Object styled_format (ptrdiff_t, Lisp_Object *, bool); | |||
| 81 | 81 | ||
| 82 | enum { tzeqlen = sizeof "TZ=" - 1 }; | 82 | enum { tzeqlen = sizeof "TZ=" - 1 }; |
| 83 | 83 | ||
| 84 | /* Time zones equivalent to current local time, to wall clock time, | 84 | /* Time zones equivalent to current local time and to UTC, respectively. */ |
| 85 | and to UTC, respectively. */ | ||
| 86 | static timezone_t local_tz; | 85 | static timezone_t local_tz; |
| 87 | static timezone_t wall_clock_tz; | ||
| 88 | static timezone_t const utc_tz = 0; | 86 | static timezone_t const utc_tz = 0; |
| 89 | 87 | ||
| 90 | /* The cached value of Vsystem_name. This is used only to compare it | 88 | /* The cached value of Vsystem_name. This is used only to compare it |
| @@ -269,7 +267,6 @@ init_editfns (bool dumping) | |||
| 269 | 267 | ||
| 270 | /* Set the time zone rule now, so that the call to putenv is done | 268 | /* Set the time zone rule now, so that the call to putenv is done |
| 271 | before multiple threads are active. */ | 269 | before multiple threads are active. */ |
| 272 | wall_clock_tz = xtzalloc (0); | ||
| 273 | tzlookup (tz ? build_string (tz) : Qwall, true); | 270 | tzlookup (tz ? build_string (tz) : Qwall, true); |
| 274 | 271 | ||
| 275 | pw = getpwuid (getuid ()); | 272 | pw = getpwuid (getuid ()); |