summaryrefslogtreecommitdiff
path: root/tests/test-exclude.c
diff options
context:
space:
mode:
authorJim Meyering <meyering@fb.com>2016-11-20 08:33:38 -0800
committerJim Meyering <meyering@fb.com>2016-11-20 08:33:38 -0800
commit19a23ce7c07fcac4c969dfec254ba02e59975e96 (patch)
treebe76fe6f378af9aaa30683406614e0b23516275a /tests/test-exclude.c
parent0f9191c165693c7d6facdc6593024394a7f5bda1 (diff)
downloadgnulib-19a23ce7c07fcac4c969dfec254ba02e59975e96.tar.gz
fix test driver leaks: exclude, malloc, realloc
* tests/test-exclude.c (main): Fix trivial leak. * tests/test-malloc-gnu.c (main): Likewise. * tests/test-realloc-gnu.c (main): Likewise. With these changes, grep's tests are now leak free. I.e., running them with ASAN elicits no failure: make CFLAGS='-O0 -ggdb3' AM_CFLAGS=-fsanitize=address \ AM_LDFLAGS='-fsanitize=address -static-libasan' check
Diffstat (limited to 'tests/test-exclude.c')
-rw-r--r--tests/test-exclude.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/test-exclude.c b/tests/test-exclude.c
index 7a13faf865..e03a8687c3 100644
--- a/tests/test-exclude.c
+++ b/tests/test-exclude.c
@@ -122,5 +122,7 @@ main (int argc, char **argv)
printf ("%s: %d\n", word, excluded_file_name (exclude, word));
}
+
+ free_exclude (exclude);
return 0;
}