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

[PATCH 0/2] diff_free(): free a bit more, fix leaks

From
Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Date
Feb 16, 2022, 10:56 UTC
Message-ID
<cover-0.2-00000000000-20220216T105250Z-avarab@gmail.com>

A short and simple two-part series to fix some leaks in after diff_flush() and friends are called by making in diff_free() more useful.

This series along with other small leak fixes I have outstanding on-list now is the last step I have before the big one of submitting a series to fix the "big one" across the test suite: the common leaks in the revisions API.

Ævar Arnfjörð Bjarmason (2):
  diff.[ch]: have diff_free() call clear_pathspec(opts.pathspec)
  diff.[ch]: have diff_free() free options->parseopts
 add-interactive.c | 6 +++---
 blame.c           | 3 ---
 builtin/reset.c   | 1 -
 diff.c            | 2 ++
 notes-merge.c     | 2 --
 5 files changed, 5 insertions(+), 9 deletions(-)
-- 
2.35.1.1028.g2d2d4be19de
Next: Ævar Arnfjörð Bjarmason
Message 1 of 8 in “diff_free(): free a bit more, fix leaks”
  1. 0/2 diff_free(): free a bit more, fix leaksÆvar Arnfjörð Bjarmason, Feb 16, 2022
  2. 1/2 diff.[ch]: have diff_free() call clear_pathspec(opts.pathspec)Ævar Arnfjörð Bjarmason, Feb 16, 2022
  3. Elijah NewrenFeb 16, 2022
  4. Ævar Arnfjörð BjarmasonFeb 17, 2022
  5. Junio C HamanoFeb 16, 2022
  6. 2/2 diff.[ch]: have diff_free() free options->parseoptsÆvar Arnfjörð Bjarmason, Feb 16, 2022
  7. Elijah NewrenFeb 16, 2022
  8. Elijah NewrenFeb 16, 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.