From 3fd6439f571a56771c6bbc21fa638cb94c929cc3 Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Mon, 6 Feb 2017 23:16:39 -0500 Subject: Fix a memory leak parsing -printf --- tests.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'tests.sh') diff --git a/tests.sh b/tests.sh index f24308d..a6d9784 100755 --- a/tests.sh +++ b/tests.sh @@ -852,9 +852,15 @@ function test_0140() { bfs_diff basic basic -quit -print } +function test_0141() { + # Memory leak regression test + [ "$GNU" ] || return 0 + bfs_diff basic -maxdepth 0 -printf '%p' +} + result=0 -for i in {1..140}; do +for i in {1..141}; do test="test_$(printf '%04d' $i)" if [ -t 1 ]; then -- cgit v1.2.3