[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] Memory leak in locale.c set_default_locale
From: |
dualbus |
Subject: |
Re: [PATCH] Memory leak in locale.c set_default_locale |
Date: |
Thu, 8 Jun 2017 09:24:23 -0500 |
User-agent: |
NeoMutt/20170113 (1.7.2) |
On Thu, Jun 08, 2017 at 09:59:39AM -0400, Chet Ramey wrote:
[...]
> Even though glibc allocates the memory for the current locale, the man page
> warns not to assume that:
>
> "A successful call to setlocale() returns an opaque string that corre-
> sponds to the locale set. This string may be allocated in static storage."
Yes. I saw the warning in the manual page.
After a closer reading, I think the Address Sanitizer is complaining
about bash's local copy (the one created with `savestring`) not being
released.
It's not a real issue, but it makes running the tests with ASAN a bit
less useful.
--
Eduardo Bustamante
https://dualbus.me/