mirror of
https://github.com/git/git
synced 2024-08-27 11:39:22 +00:00
midx: fix broken free() in close_midx()
When closing a multi-pack-index, we intend to close each pack-file and free the struct packed_git that represents it. However, this line was previously freeing the array of pointers, not the pointer itself. This leads to a double-free issue. Signed-off-by: Derrick Stolee <dstolee@microsoft.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
parent
f84b9b09d4
commit
0ce4ff9421
Loading…
Reference in a new issue