]> Savannah Git Hosting - gnulib.git/commit
fts: avoid a memory leak edge case
authorPádraig Brady <P@draigBrady.com>
Mon, 14 May 2018 01:42:37 +0000 (18:42 -0700)
committerPádraig Brady <P@draigBrady.com>
Mon, 21 May 2018 06:13:32 +0000 (23:13 -0700)
commite90c77eb2608f23caa798a9910d8dc0f9901904a
tree3ea4c13a2cf2d8c02e79d62b8793929771a11266
parent1193175efd58883626d2b8c454b57a9490538d61
fts: avoid a memory leak edge case

* lib/fts.c (fts_open): Set an appropriate fts_level
so that an immediate fts_close() will free the allocation.
* tests/test-fts.c (fts_dealloc): Add a test case which
will trigger under valgrind or address sanitizer.
Fixes https://bugs.gnu.org/31439
ChangeLog
lib/fts.c
tests/test-fts.c