Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
9
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Switch to GitLab Next
Sign in / Register
Toggle navigation
Open sidebar
emacs-ci
emacs
Commits
f7c07930
Commit
f7c07930
authored
May 16, 2017
by
Paul Eggert
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix minor timezone memory leak
* src/editfns.c (wall_clock_tz): Remove; unused.
parent
69d0a850
Pipeline
#8321298
failed with stage
in 2 minutes and 32 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
4 deletions
+1
-4
src/editfns.c
src/editfns.c
+1
-4
No files found.
src/editfns.c
View file @
f7c07930
...
...
@@ -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
());
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment