While looking at the leaks reported by our new CI job, noticed there was a hidden one when running t0000 in macOS. The first patch fixex that leak, and the second one fixes the reason why it was hidden. [PATCH 1/2] tree-diff: fix leak when not HAVE_ALLOCA [PATCH 2/2] t0000: avoid masking git exit value through pipes Carlo