While looking at the leaks reported by our new CI job, noticed there was a hidden one when running t0000 in macOS. The first one fixes the leak and the second one the reason why it was silent. v2 includes all suggestions and feedback, and tries probably too hard to modify the last test in a way that wouldn't require long lines. Carlo Marcelo Arenas Belón (2): tree-diff: fix leak when not HAVE_ALLOCA_H t0000: avoid masking git exit value through pipes t/t0000-basic.sh | 23 ++++++++++++----------- tree-diff.c | 4 +++- 2 files changed, 15 insertions(+), 12 deletions(-) -- 2.33.0.481.g26d3bed244