Mercurial > gnulib
diff lib/fts.c @ 19683:c4547aaaa88f
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
author | Pádraig Brady <P@draigBrady.com> |
---|---|
date | Sun, 13 May 2018 18:42:37 -0700 |
parents | 359b539b5677 |
children | 9c4bd940d721 |
line wrap: on
line diff