diff options
author | Junio C Hamano <gitster@pobox.com> | 2013-04-04 21:03:21 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2013-04-05 10:31:09 -0700 |
commit | 88ff684dd54f2a4793387f7162357005a4777ff2 (patch) | |
tree | 728a60ee2993e595a897bc2a46be3a00928875a7 /t/t2004-checkout-cache-temp.sh | |
parent | diffcore-pickaxe: port optimization from has_changes() to diff_grep() (diff) | |
download | tgif-88ff684dd54f2a4793387f7162357005a4777ff2.tar.xz |
diffcore-pickaxe: fix leaks in "log -S<block>" and "log -G<pattern>"
The diff_grep() and has_changes() functions had early return
codepaths for unmerged filepairs, which simply returned 0. When we
taught textconv filter to them, one was ignored and continued to
return early without freeing the result filtered by textconv, and
the other had a failed attempt to fix, which allowed the planned
return value 0 to be overwritten by a bogus call to contains().
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t2004-checkout-cache-temp.sh')
0 files changed, 0 insertions, 0 deletions