Fix mmap leak caused by reading bad indexes.
authorShawn O. Pearce <spearce@spearce.org>
Wed, 7 Mar 2007 01:44:11 +0000 (20:44 -0500)
committerJunio C Hamano <junkio@cox.net>
Wed, 7 Mar 2007 18:41:33 +0000 (10:41 -0800)
If an index is corrupt, or is simply too new for us to understand,
we were leaking the mmap that held the entire content of the index.
This could be a considerable size on large projects, given that
the index is at least 24 bytes * nr_objects.

Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>
No differences found