[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#26628: [PATCH] Fix memory leak of cwd string in emacsclient
From: |
Andreas Schwab |
Subject: |
bug#26628: [PATCH] Fix memory leak of cwd string in emacsclient |
Date: |
Mon, 24 Apr 2017 11:23:26 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.2 (gnu/linux) |
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."