[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] master f7c0793: Fix minor timezone memory leak
From: |
Paul Eggert |
Subject: |
[Emacs-diffs] master f7c0793: Fix minor timezone memory leak |
Date: |
Tue, 16 May 2017 17:36:44 -0400 (EDT) |
branch: master
commit f7c07930b581b1bcfdfb1874b6883233516bdf11
Author: Paul Eggert <address@hidden>
Commit: Paul Eggert <address@hidden>
Fix minor timezone memory leak
* src/editfns.c (wall_clock_tz): Remove; unused.
---
src/editfns.c | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/src/editfns.c b/src/editfns.c
index ecb8e3f..75eb75a 100644
--- a/src/editfns.c
+++ b/src/editfns.c
@@ -81,10 +81,8 @@ static Lisp_Object styled_format (ptrdiff_t, Lisp_Object *,
bool);
enum { tzeqlen = sizeof "TZ=" - 1 };
-/* Time zones equivalent to current local time, to wall clock time,
- and to UTC, respectively. */
+/* Time zones equivalent to current local time and to UTC, respectively. */
static timezone_t local_tz;
-static timezone_t wall_clock_tz;
static timezone_t const utc_tz = 0;
/* The cached value of Vsystem_name. This is used only to compare it
@@ -269,7 +267,6 @@ init_editfns (bool dumping)
/* Set the time zone rule now, so that the call to putenv is done
before multiple threads are active. */
- wall_clock_tz = xtzalloc (0);
tzlookup (tz ? build_string (tz) : Qwall, true);
pw = getpwuid (getuid ());
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] master f7c0793: Fix minor timezone memory leak,
Paul Eggert <=