diff options
author | Matthew Wilcox <mawilcox@microsoft.com> | 2017-01-29 01:48:34 -0500 |
---|---|---|
committer | Matthew Wilcox <mawilcox@microsoft.com> | 2017-02-13 21:44:06 -0500 |
commit | 18d0c57394e42ff536e5fdc776b6b217fdd9889c (patch) | |
tree | 905864b7e31e039ba324cd3a354f0c1fc9527cf9 /lib/nodemask.c | |
parent | 829f83d3653ef7105187b0110887dbfd46a30ce4 (diff) | |
download | linux-18d0c57394e42ff536e5fdc776b6b217fdd9889c.tar.gz linux-18d0c57394e42ff536e5fdc776b6b217fdd9889c.tar.bz2 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 'lib/nodemask.c')
0 files changed, 0 insertions, 0 deletions