• Junio C Hamano's avatar
    diffcore-pickaxe: fix leaks in "log -S<block>" and "log -G<pattern>" · 88ff684d
    Junio C Hamano authored
    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: default avatarJunio C Hamano <gitster@pobox.com>
diffcore-pickaxe.c 7 KB