]> git.ipfire.org Git - thirdparty/git.git/commit
load_one_loose_object_map(): fix resource leak
authorJohannes Schindelin <johannes.schindelin@gmx.de>
Sun, 5 Jul 2026 08:24:18 +0000 (08:24 +0000)
committerJunio C Hamano <gitster@pobox.com>
Sun, 5 Jul 2026 16:12:09 +0000 (09:12 -0700)
commit8b90835161cff95e80bc39e8acb25f0f77592ecf
treedc7ac578c418bfb1e203b44efc8e122b5da06c72
parente9019fcafe0040228b8631c30f97ae1adb61bcdc
load_one_loose_object_map(): fix resource leak

Pointed out by Coverity.

While at it, reduce near-duplicate clean-up code at the end of the
function.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
loose.c