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

Re: [PATCH] builtin-rerere: fix a small leak

From
Johannes Schindelin <johannes.schindelin@gmx.de>
Date
Jun 17, 2008, 10:34 UTC
Message-ID
<alpine.DEB.1.00.0806171133330.6439@racer>
In-Reply-To
<7vk5go7cek.fsf@gitster.siamese.dyndns.org>
Hi,
On Tue, 17 Jun 2008, Junio C Hamano wrote:
Show 9 quoted lines
> The data read from MERGE_RR file is kept in path-list by hanging textual
> 40-byte conflict signature to path of the blob that contains the
> conflict.  The signature is strdup'ed twice, and the second copy is given
> to the path-list, leaking the first copy.
> 
> Signed-off-by: Junio C Hamano <junio@pobox.com>
> ---
>  * Am I overlooking something obvious, or is this simply a never-reviewed
>    buglet that nobody has noticed for a long time?

I think that it was a never-reviewed buglet. The only code path leading to read_rr passes merge_rr, which has strdup_paths == 1.

Acked-by: Johannes Schindelin <Johannes.Schindelin@gmx.de>

Ciao, Dscho

Previous: Junio C Hamano
Message 2 of 2 in “builtin-rerere: fix a small leak”
  1. builtin-rerere: fix a small leakJunio C Hamano, Jun 17, 2008
  2. Johannes SchindelinJun 17, 2008

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.