]> git.99rst.org Git - git.git/commit
add: plug a leak on interactive_add
authorRubén Justo <redacted>
Mon, 22 Apr 2024 22:54:18 +0000 (00:54 +0200)
committerJunio C Hamano <redacted>
Mon, 22 Apr 2024 23:27:43 +0000 (16:27 -0700)
commit16727404c48ba1c2f43fb966276aee0b8cb24389
tree0fe319b0d9e46c6950baf37995a321d83ccf37b5
parentec9b74b18e019a8adff827ab22380f9771ac5f00
add: plug a leak on interactive_add

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.

Signed-off-by: Rubén Justo <redacted>
Signed-off-by: Junio C Hamano <redacted>
builtin/add.c
t/t3701-add-interactive.sh
t/t7514-commit-patch.sh
git clone https://git.99rst.org/PROJECT