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

Re: [PATCH] speed: reuse char instead of recreation in loop

From
Thomas Spura <tomspur@fedoraproject.org>
Date
May 25, 2009, 20:44 UTC
Message-ID
<pan.2009.05.25.20.44.20@fedoraproject.org>
In-Reply-To
<4A1B01E9.30601@lsrfire.ath.cx>
Am Mon, 25 May 2009 22:39:05 +0200 schrieb René Scharfe:
> This introduces a memory leak.  The string pointed to by ref is
> allocated by dwim_ref() and needs to be free()'d after use, and -- more
> importantly -- before ref is assigned its next value by dwim_ref().
Thanks, sorry for the noise...
	Thomas
Previous: René Scharfe
Message 7 of 7 in “speed: reuse char instead of recreation in loop”
  1. speed: reuse char instead of recreation in loopThomas Spura, May 25, 2009
  2. Björn SteinbrinkMay 25, 2009
  3. Thomas SpuraMay 25, 2009
  4. Daniel BarkalowMay 25, 2009
  5. Stephen R. van den BergMay 26, 2009
  6. René ScharfeMay 25, 2009
  7. Thomas SpuraMay 25, 2009

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.