diff options
author | Shawn O. Pearce <spearce@spearce.org> | 2007-03-06 20:44:11 -0500 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2007-03-07 10:41:33 -0800 |
commit | 2d88451b7a8cdd8bc233c7910c775bbb0ac76457 (patch) | |
tree | 476ded1e59e81b1d99ba1eca0cbe99d3fec89798 /builtin-grep.c | |
parent | Display the null SHA-1 as the base for an OBJ_OFS_DELTA. (diff) | |
download | tgif-2d88451b7a8cdd8bc233c7910c775bbb0ac76457.tar.xz |
Fix mmap leak caused by reading bad indexes.
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>
Diffstat (limited to 'builtin-grep.c')
0 files changed, 0 insertions, 0 deletions