[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#26628: [PATCH] Fix memory leak of cwd string in emacsclient
From: |
Paul Eggert |
Subject: |
bug#26628: [PATCH] Fix memory leak of cwd string in emacsclient |
Date: |
Wed, 31 May 2017 23:30:53 -0700 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.1.1 |
Generally speaking we don't bother freeing storage just before program exit
merely to pacify AddressSanitizer, as that makes the program less efficient and
is contrary to the goal of leak checking which is to increase efficiency. Here,
though, we can free storage earlier, and this might have a point since the
storage can get reused. So I installed the attached further patch.
I'm aware that I can set ASAN_OPTIONS=detect_leaks=0 in the environment
It might not hurt to do that, if only to prevent our hassling with false alarms.
0001-Free-cwd-when-no-longer-needed.txt
Description: Text document
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- bug#26628: [PATCH] Fix memory leak of cwd string in emacsclient,
Paul Eggert <=