diff options
author | Matthew Wilcox <mawilcox@microsoft.com> | 2017-01-29 07:48:34 +0100 |
---|---|---|
committer | Matthew Wilcox <mawilcox@microsoft.com> | 2017-02-14 03:44:06 +0100 |
commit | 18d0c57394e42ff536e5fdc776b6b217fdd9889c (patch) | |
tree | 905864b7e31e039ba324cd3a354f0c1fc9527cf9 /tools/nfsd | |
parent | radix tree test suite: Enable address sanitizer (diff) | |
download | linux-18d0c57394e42ff536e5fdc776b6b217fdd9889c.tar.xz linux-18d0c57394e42ff536e5fdc776b6b217fdd9889c.zip |
radix tree test suite: Fix leaky tests
If item_insert() or item_insert_order() failed to insert an item, they
would leak the item they had just created. This was causing runaway
memory consumption while running the iteration_check testcase, which
proves that Ross has too much memory in his workstation ;-)
Make sure to free the item on error. Found with -fsanitize=address.
Signed-off-by: Matthew Wilcox <mawilcox@microsoft.com>
Reviewed-by: Rehas Sachdeva <aquannie@gmail.com>
Diffstat (limited to 'tools/nfsd')
0 files changed, 0 insertions, 0 deletions