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

[PATCH 0/2] fix a leak in submodule error path

From
Jeff King <peff@peff.net>
Date
Sep 2, 2026, 05:51 UTC
Message-ID
<20260902055117.GA41587@coredump.intra.peff.net>

This fixes a small leak noticed by Coverity. I think it has been there for a while, but nearby code movement caused it to be marked as "new".

  [1/2]: repository: make repo_clear() idempotent
  [2/2]: submodule--helper: free URL when repository setup fails
 builtin/submodule--helper.c             | 10 +++++++---
 repository.c                            |  3 ++-
 t/t7426-submodule-get-default-remote.sh | 17 +++++++++++++++++
 3 files changed, 26 insertions(+), 4 deletions(-)
-Peff
Next: Jeff King
Message 1 of 9 in “fix a leak in submodule error path”
  1. 0/2 fix a leak in submodule error pathJeff King, Sep 2, 2026
  2. 1/2 repository: make repo_clear() idempotentJeff King, Sep 2, 2026
  3. Jeff KingSep 2, 2026
  4. Jeff KingSep 2, 2026
  5. Patrick SteinhardtSep 2, 2026
  6. Junio C HamanoSep 2, 2026
  7. Patrick SteinhardtSep 3, 2026
  8. 2/2 submodule--helper: free URL when repository setup failsJeff King, Sep 2, 2026
  9. Patrick SteinhardtSep 2, 2026

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.