summaryrefslogtreecommitdiff
path: root/base85.c
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2013-04-04 21:03:21 -0700
committerLibravatar Junio C Hamano <gitster@pobox.com>2013-04-05 10:31:09 -0700
commit88ff684dd54f2a4793387f7162357005a4777ff2 (patch)
tree728a60ee2993e595a897bc2a46be3a00928875a7 /base85.c
parentdiffcore-pickaxe: port optimization from has_changes() to diff_grep() (diff)
downloadtgif-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 'base85.c')
0 files changed, 0 insertions, 0 deletions