git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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.
Previous: Matthieu MoyNext: Erik Faye-Lund
Message 3 of 6 in “commit: fix memory-leak”
  1. commit: fix memory-leakErik Faye-Lund, Feb 7, 2011
  2. Matthieu MoyFeb 7, 2011
  3. Erik Faye-LundFeb 7, 2011
  4. commit: fix memory-leakErik Faye-Lund, Feb 7, 2011
  5. Erik Faye-LundFeb 7, 2011
  6. Erik Faye-LundFeb 7, 2011

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.