Skip to content

Conversation

lstoppa
Copy link
Contributor

@lstoppa lstoppa commented Sep 20, 2024

In truncate_racily_clean, when git_diff_index_to_workdir fails, we leak the local variable git_vector paths.

    In truncate_racily_clean, when git_diff_index_to_workdir fails,
    we leak the local variable git_vector paths.
@ethomson
Copy link
Member

Good catch; thanks!

@ethomson ethomson merged commit 34432d9 into libgit2:main Sep 20, 2024
19 checks passed
@lstoppa lstoppa deleted the fix-leak-for-index-when-git_diff_index_to_workdir-fails branch September 20, 2024 21:50
@ethomson ethomson added the bug label Sep 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants