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

Re: [PATCH v2] commit-graph: Fix missing closedir in expire_commit_graphs

From
Junio C Hamano <gitster@pobox.com>
Date
Sep 19, 2022, 17:41 UTC
Message-ID
<xmqq7d1zb6ta.fsf@gitster.g>
In-Reply-To
<4f1cf64e-2864-a979-6f75-d9d4148d57da@github.com>
Derrick Stolee <derrickstolee@github.com> writes:
Show 21 quoted lines
> On 9/19/2022 10:14 AM, Miaoqian Lin wrote:
>> The function calls opendir() but missing the corresponding
>> closedir() before exit the function.
>> Add missing closedir() to fix it.
>
> Thanks for the patch, Miaoqian.
>
> I only have a very tiny nitpick with the line breaks in your
> commit message. Either the "Add missing..." sentence should
> start immediately after the previous sentence or have another
> line break between the paragraphs. This shouldn't merit a
> re-roll, but keep it in mind for future contributions.
>
>>  out:
>> +	if(dir)
>> +		closedir(dir);
>>  	strbuf_release(&path);
>>  }
>
> This change looks correct to me. Thanks!
> -Stolee
Thanks, both.  Looking good.
Previous: Derrick Stolee
Message 3 of 3 in “commit-graph: Fix missing closedir in expire_commit_graphs”
  1. commit-graph: Fix missing closedir in expire_commit_graphsMiaoqian Lin, Sep 19, 2022
  2. Derrick StoleeSep 19, 2022
  3. Junio C HamanoSep 19, 2022

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.