diff options
| author | Lidong Yan <502024330056@smail.nju.edu.cn> | 2025-05-09 08:30:35 +0000 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2025-05-15 14:32:40 -0700 |
| commit | beccbddb6802c0b56e34bb1d55cecceb093940f4 (patch) | |
| tree | 69308d66315a12d4e3e1d141b955653764aa0fd3 /git-gui/git-gui.sh | |
| parent | 1a8a4971cc6c179c4dd711f4a7f5d7178f4b3ab7 (diff) | |
commit-graph: fix memory leak when `fill_oids_from_packs()` fails
In commit-graph.c:fill_oids_from_packs, if open_pack_index failed,
memory allocated and returned by add_packed_git will leak. Simply
add close_pack and free(p) will solve this problem.
Signed-off-by: Lidong Yan <502024330056@smail.nju.edu.cn>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'git-gui/git-gui.sh')
0 files changed, 0 insertions, 0 deletions
