From: Junio C Hamano Date: Fri, 9 Aug 2019 17:13:14 +0000 (-0700) Subject: Merge branch 'mt/dir-iterator-updates' X-Git-Tag: v2.23.0-rc2~3 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9179380aa616af0118bb85288e6a1b5c5c91b7ef;p=git Merge branch 'mt/dir-iterator-updates' Leakfix. * mt/dir-iterator-updates: test-dir-iterator: use path argument directly dir-iterator: release strbuf after use --- 9179380aa616af0118bb85288e6a1b5c5c91b7ef diff --cc t/helper/test-dir-iterator.c index c7c30664da,b421d2bf38..659b6bfa81 --- a/t/helper/test-dir-iterator.c +++ b/t/helper/test-dir-iterator.c @@@ -36,11 -26,10 +35,10 @@@ int cmd__dir_iterator(int argc, const c if (!*argv || argc != 1) die("dir-iterator needs exactly one non-option argument"); - strbuf_add(&path, *argv, strlen(*argv)); - diter = dir_iterator_begin(path.buf, flags); + diter = dir_iterator_begin(*argv, flags); if (!diter) { - printf("dir_iterator_begin failure: %d\n", errno); + printf("dir_iterator_begin failure: %s\n", error_name(errno)); exit(EXIT_FAILURE); }