]> git.99rst.org Git - git.git/commit
sparse-index: correctly free EWAH contents
authorPatrick Steinhardt <redacted>
Tue, 5 Nov 2024 06:17:38 +0000 (07:17 +0100)
committerJunio C Hamano <redacted>
Tue, 5 Nov 2024 06:37:56 +0000 (22:37 -0800)
commit1f5ff83eab03773692fe6f7bab7f10ad82ab031b
treec30a7f3a9dc495154eb2318aa4fd6b9520665bf6
parente4ba54d47b675e0613a2644f37c0b4f57a833a44
sparse-index: correctly free EWAH contents

While we free the `fsmonitor_dirty` member of `struct index_state`, we
do not free the contents of that EWAH. Do so by using `ewah_free()`
instead of `FREE_AND_NULL()`.

This leak is exposed by t7519, but plugging it alone does not make the
test suite pass.

Signed-off-by: Patrick Steinhardt <redacted>
Signed-off-by: Junio C Hamano <redacted>
sparse-index.c
git clone https://git.99rst.org/PROJECT