Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
877e8084
Commit
877e8084
authored
May 31, 2017
by
Paul Eggert
Browse files
Free cwd when no longer needed
* lib-src/emacsclient.c (main): Don’t dally when freeing cwd.
parent
c221f146
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
lib-src/emacsclient.c
lib-src/emacsclient.c
+2
-3
No files found.
lib-src/emacsclient.c
View file @
877e8084
...
...
@@ -208,7 +208,7 @@ char *get_current_dir_name (void);
/* Return the current working directory. Returns NULL on errors.
Any other returned value must be freed with free. This is used
only when get_current_dir_name is not defined on the system. */
char
*
char
*
get_current_dir_name
(
void
)
{
char
*
buf
;
...
...
@@ -1702,6 +1702,7 @@ main (int argc, char **argv)
if
(
tramp_prefix
)
quote_argument
(
emacs_socket
,
tramp_prefix
);
quote_argument
(
emacs_socket
,
cwd
);
free
(
cwd
);
send_to_emacs
(
emacs_socket
,
"/"
);
send_to_emacs
(
emacs_socket
,
" "
);
...
...
@@ -1945,8 +1946,6 @@ main (int argc, char **argv)
if
(
rl
<
0
)
exit_status
=
EXIT_FAILURE
;
free
(
cwd
);
/* Keep leak checkers happy. */
CLOSE_SOCKET
(
emacs_socket
);
return
exit_status
;
}
...
...
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