aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/radix-tree/regression2.c
diff options
context:
space:
mode:
authorMatthew Wilcox <mawilcox@microsoft.com>2017-01-29 01:48:34 -0500
committerMatthew Wilcox <mawilcox@microsoft.com>2017-02-13 21:44:06 -0500
commit18d0c57394e42ff536e5fdc776b6b217fdd9889c (patch)
tree905864b7e31e039ba324cd3a354f0c1fc9527cf9 /tools/testing/radix-tree/regression2.c
parentradix tree test suite: Enable address sanitizer (diff)
downloadlinux-dev-18d0c57394e42ff536e5fdc776b6b217fdd9889c.tar.xz
linux-dev-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/testing/radix-tree/regression2.c')
0 files changed, 0 insertions, 0 deletions