diff options
author | Joey Hess <joey@kitenet.net> | 2013-09-19 20:09:03 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2013-09-19 20:09:03 -0400 |
commit | 7a280b9c2e3f348b6156853d3cb1354c2fec458f (patch) | |
tree | 11dacb962a1845105b65a6c2f9ab1ba85da731f9 /Git/Command.hs | |
parent | 01b8d02204c0c128f743ef1d205a32ff1ceeffce (diff) |
completely solve catKey memory leak
Since 4aaa584eb632a981f5364c844f9293d4cdedaa65 was incomplete, not being
able to get the right mode of the file when the index differs from HEAD,
this is a final workaround. Only buffering the start of the file
in this case avoids leaking memory.
This does not prevent git-cat-file being asked to output the whole file,
which needs to be consumed, and can be slow. But this only happens in a
rare edge case.
Diffstat (limited to 'Git/Command.hs')
0 files changed, 0 insertions, 0 deletions