Subject: Re: bug#26628: [PATCH] Fix memory leak of cwd string in emacsclient

From: [email-masked]
Date: Wed, 31 May 2017 22:59:49 -0400

tags 26628 fixed
close 26628 26.1
quit

Andreas Schwab <[email-masked]> writes:

> On Apr 23 2017, Anders Waldenborg <[email-masked]> 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.

On the other hand, it doesn't really hurt to free it either, pushed to
master [1: c221f1466e].

[1: c221f1466e]: 2017-05-31 22:58:30 -0400
  Fix memory leak of cwd string in emacsclient (Bug#26628)
  http://git.savannah.gnu.org/cgit/emacs.git/commit/?id=c221f1466ed7e0f11f142d9cb3c0247b10e511c6