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

Re: [PATCH] win32: plug memory leak on realloc() failure in syslog()

From
Johannes Schindelin <johannes.schindelin@gmx.de>
Date
Aug 14, 2017, 20:26 UTC
Message-ID
<alpine.DEB.2.21.1.1708142225330.19382@virtualbox>
In-Reply-To
<245410ce-1f4c-f2a9-fd8d-98ff2d2c0335@web.de>
Hi René,
On Thu, 10 Aug 2017, René Scharfe wrote:
> If realloc() fails then the original buffer is still valid.  Free it
> before exiting the function.
> 
> Signed-off-by: Rene Scharfe <l.s.r@web.de>

The subject had me worried for a second... The realloc() fails so rarely that I, for one, have never encountered that problem.

Still, it is a correct fix for a real bug.

Thanks, Dscho

Previous: René Scharfe
Message 2 of 2 in “win32: plug memory leak on realloc() failure in syslog()”
  1. win32: plug memory leak on realloc() failure in syslog()René Scharfe, Aug 10, 2017
  2. Johannes SchindelinAug 14, 2017

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.