]> Savannah Git Hosting - gnulib.git/commit
fix test driver leaks: exclude, malloc, realloc
authorJim Meyering <meyering@fb.com>
Sun, 20 Nov 2016 16:33:38 +0000 (08:33 -0800)
committerJim Meyering <meyering@fb.com>
Sun, 20 Nov 2016 16:33:38 +0000 (08:33 -0800)
commit19a23ce7c07fcac4c969dfec254ba02e59975e96
treebe76fe6f378af9aaa30683406614e0b23516275a
parent0f9191c165693c7d6facdc6593024394a7f5bda1
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
ChangeLog
tests/test-exclude.c
tests/test-malloc-gnu.c
tests/test-realloc-gnu.c