From: Andreas Schwab <schwab@linux-m68k.org>
To: Anders Waldenborg <anders@0x63.nu>
Cc: 26628@debbugs.gnu.org
Subject: bug#26628: [PATCH] Fix memory leak of cwd string in emacsclient
Date: Mon, 24 Apr 2017 11:23:26 +0200 [thread overview]
Message-ID: <87zif6dur5.fsf@linux-m68k.org> (raw)
In-Reply-To: <CADsOX3CMeH-xQd3zRS6k0x=bQeAbbHau=4ruDmk2Xz3CtGzeNA@mail.gmail.com> (Anders Waldenborg's message of "Sun, 23 Apr 2017 21:23:13 +0200")
On Apr 23 2017, Anders Waldenborg <anders@0x63.nu> wrote:
> * lib-src/emacsclient.c (main): emacsclient retrieves the current
> working directory using get_current_dir_name which returns a newly
> allocated string. Make sure this string is freed before exiting.
There is no need to free it since the process exists right away anyway.
Andreas.
--
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."
next prev parent reply other threads:[~2017-04-24 9:23 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-04-23 19:23 bug#26628: [PATCH] Fix memory leak of cwd string in emacsclient Anders Waldenborg
2017-04-24 9:23 ` Andreas Schwab [this message]
2017-04-24 16:05 ` Anders Waldenborg
2017-06-01 2:59 ` npostavs
2017-06-01 6:30 ` Paul Eggert
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87zif6dur5.fsf@linux-m68k.org \
--to=schwab@linux-m68k.org \
--cc=26628@debbugs.gnu.org \
--cc=anders@0x63.nu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.