diff options
author | Derrick Stolee <dstolee@microsoft.com> | 2018-10-08 08:17:03 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2018-10-09 18:04:15 +0900 |
commit | 0ce4ff942125eabed3df694dc27922bec8177624 (patch) | |
tree | 6bfd68ded410da6ed750fd571d99604cc035a421 /midx.h | |
parent | Sync with 2.19.1 (diff) | |
download | tgif-0ce4ff942125eabed3df694dc27922bec8177624.tar.xz |
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>
Diffstat (limited to 'midx.h')
0 files changed, 0 insertions, 0 deletions