author | Jonathan Nieder <jrnieder@gmail.com> | |
Tue, 10 Aug 2010 03:32:11 +0000 (22:32 -0500) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Wed, 11 Aug 2010 16:58:38 +0000 (09:58 -0700) | ||
commit | b6b56aceb85fe05dc681ac7ee1249e6b6e26e957 | |
tree | ce5d371dceacde2e2f3d686669c8127c6d83c319 | tree | snapshot |
parent | 1ce584b05843dfa8b0fe31ed3d75bddf1c29c4e0 | commit | diff |
write-tree: Avoid leak when index refers to an invalid object
Noticed by valgrind during test t0000.35 “writing this tree without
--missing-ok”.
Even in the cherry-pick foo..bar code path, such an error is the
end of the line. But maybe some day an interactive porcelain will
want to link to libgit, making this matter.
Signed-off-by: Jonathan Nieder <jrnieder@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Noticed by valgrind during test t0000.35 “writing this tree without
--missing-ok”.
Even in the cherry-pick foo..bar code path, such an error is the
end of the line. But maybe some day an interactive porcelain will
want to link to libgit, making this matter.
Signed-off-by: Jonathan Nieder <jrnieder@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
cache-tree.c | diff | blob | history |