Re: [PATCH/RFC] commit: fix memory-leak
- From
Erik Faye-Lund <kusmabite@gmail.com>
- Date
- Feb 7, 2011, 19:22 UTC
- Message-ID
- <AANLkTikKZ+2qUMF1T5pP60cUd9Ya3n2mfhTkX6L32zmn@mail.gmail.com>
- In-Reply-To
- <vpqei7jfzq5.fsf@bauges.imag.fr>
On Mon, Feb 7, 2011 at 7:48 PM, Matthieu Moy <Matthieu.Moy@grenoble-inp.fr> wrote:
Show 9 quoted lines
> Erik Faye-Lund <kusmabite@gmail.com> writes: > >> At the same time, this fixes a problem with strict-POSIX getenv >> implementations. POSIX says "The return value from getenv() may >> point to static data which may be overwritten by subsequent calls >> to getenv()", so duplicating the strings is a potential bug. > ^ > not > ?
Indeed, thanks.