author | Alex Riesen <raa.lkml@gmail.com> | |
Wed, 19 Nov 2008 11:14:05 +0000 (12:14 +0100) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Mon, 24 Nov 2008 03:31:05 +0000 (19:31 -0800) | ||
commit | f755bb996ba0540d668104d0e2d4e03bb71b560b | |
tree | ed4e9a04d59f4c960f6c671e8fde9cd34a909ab0 | tree | snapshot |
parent | 6fc4a7e546d5e2b0ce545f73b5c1829887db2462 | commit | diff |
Fix handle leak in sha1_file/unpack_objects if there were damaged object data
In the case of bad packed object CRC, unuse_pack wasn't called after
check_pack_crc which calls use_pack.
Signed-off-by: Alex Riesen <raa.lkml@gmail.com>
Acked-by: Nicolas Pitre <nico@cam.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
In the case of bad packed object CRC, unuse_pack wasn't called after
check_pack_crc which calls use_pack.
Signed-off-by: Alex Riesen <raa.lkml@gmail.com>
Acked-by: Nicolas Pitre <nico@cam.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
sha1_file.c | diff | blob | history |