diffcore-pickaxe: fix leaks in "log -S<block>" and "log -G<pattern>"