odb_load_loose_cache: fix strbuf leak
commit7317aa7153c063a01750cda625e1a4580af89ef3
authorJeff King <peff@peff.net>
Thu, 22 Nov 2018 17:53:00 +0000 (22 12:53 -0500)
committerJunio C Hamano <gitster@pobox.com>
Sat, 24 Nov 2018 02:13:24 +0000 (24 11:13 +0900)
tree79915bba42c4c2e6fbc95cc00dd2c5e4e8423f8f
parent97b2fa08b6b9ee3ebd927bbc208bf5223e5ac849
odb_load_loose_cache: fix strbuf leak

Commit 3a2e0824 ("object-store: provide helpers for loose_objects_cache",
2018-11-12) moved the cache-loading code from find_short_object_filename(),
but forgot the line that releases the path strbuf.

Reported-by: René Scharfe <l.s.r@web.de>
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
sha1-file.c