[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#26628: [PATCH] Fix memory leak of cwd string in emacsclient
From: |
npostavs |
Subject: |
bug#26628: [PATCH] Fix memory leak of cwd string in emacsclient |
Date: |
Wed, 31 May 2017 22:59:49 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.2.50 (gnu/linux) |
tags 26628 fixed
close 26628 26.1
quit
Andreas Schwab <schwab@linux-m68k.org> writes:
> 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.
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
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- bug#26628: [PATCH] Fix memory leak of cwd string in emacsclient,
npostavs <=