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

Re: [PATCH 4/4] add: plug a leak on interactive_add

From
Rubén Justo <rjusto@gmail.com>
Date
Apr 22, 2024, 23:04 UTC
Message-ID
<effc5e33-562b-4545-a58e-0c6e9a10ad42@gmail.com>
In-Reply-To
<55f1da17-6f07-4b25-9cf2-0de69bfb5005@gmail.com>
On 4/22/24 5:43 PM, Phillip Wood wrote:
Show 16 quoted lines
>> Plug a leak we have since 5a76aff1a6 (add: convert to use
>> parse_pathspec, 2013-07-14).
>>
>> This leak can be triggered with:
>>      $ git add -p anything
>>
>> Fixing this leak allows us to mark as leak-free the following tests:
>>
>>      + t3701-add-interactive.sh
>>      + t7514-commit-patch.sh
>>
>> Mark them with "TEST_PASSES_SANITIZE_LEAK=true" to notice and fix
>> promply any new leak that may be introduced and triggered by them in the
>> future.
> 
> This makes me wonder if we're freeing the pathspec properly when using '--patch' in checkout, reset, restore and stash.
I haven't checked it thoroughly, but I think we're fine in those cases.
Previous: Phillip WoodNext: Patrick Steinhardt
Message 11 of 19 in “mark t3701-add-interactive.sh as leak-free”
  1. 0/4 mark t3701-add-interactive.sh as leak-freeRubén Justo, Apr 21, 2024
  2. 2/4 add-interactive: plug a leak in get_untracked_filesRubén Justo, Apr 21, 2024
  3. Junio C HamanoApr 22, 2024
  4. 1/4 apply: plug a leak in apply_dataRubén Justo, Apr 21, 2024
  5. Phillip WoodApr 22, 2024
  6. Rubén JustoApr 22, 2024
  7. Junio C HamanoApr 22, 2024
  8. 3/4 add-patch: plug a leak handling the '/' commandRubén Justo, Apr 21, 2024
  9. 4/4 add: plug a leak on interactive_addRubén Justo, Apr 21, 2024
  10. Phillip WoodApr 22, 2024
  11. Rubén JustoApr 22, 2024
  12. Patrick SteinhardtApr 22, 2024
  13. Junio C HamanoApr 22, 2024
  14. 0/4 mark t3701-add-interactive.sh as leak-freeRubén Justo, Apr 22, 2024
  15. 1/4 apply: plug a leak in apply_dataRubén Justo, Apr 22, 2024
  16. 2/4 add-interactive: plug a leak in get_untracked_filesRubén Justo, Apr 22, 2024
  17. 3/4 add-patch: plug a leak handling the '/' commandRubén Justo, Apr 22, 2024
  18. 4/4 add: plug a leak on interactive_addRubén Justo, Apr 22, 2024
  19. Junio C HamanoApr 22, 2024

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.