summaryrefslogtreecommitdiff
path: root/pack-objects.c
diff options
context:
space:
mode:
authorRené Scharfe <l.s.r@web.de>2017-02-25 10:02:28 (GMT)
committerJunio C Hamano <gitster@pobox.com>2017-02-27 19:00:30 (GMT)
commit886ddf4777d119f0a420bdf55fba834c16c58069 (patch)
tree296215f46527ab3af2f4a289fc7b7dd3840497e5 /pack-objects.c
parentc3808ca6982b0ad7ee9b87eca9b50b9a24ec08b0 (diff)
downloadgit-886ddf4777d119f0a420bdf55fba834c16c58069.zip
git-886ddf4777d119f0a420bdf55fba834c16c58069.tar.gz
git-886ddf4777d119f0a420bdf55fba834c16c58069.tar.bz2
sha1_file: release fallback base's memory in unpack_entry()
If a pack entry that's used as a delta base is corrupt, unpack_entry() marks it as unusable and then searches the object again in the hope that it can be found in another pack or in a loose file. The memory for this external base object is never released. Free it after use. Signed-off-by: Rene Scharfe <l.s.r@web.de> Reviewed-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'pack-objects.c')
0 files changed, 0 insertions, 0 deletions