commit | 18d0c57394e42ff536e5fdc776b6b217fdd9889c | [log] [tgz] |
---|---|---|
author | Matthew Wilcox <mawilcox@microsoft.com> | Sun Jan 29 01:48:34 2017 -0500 |
committer | Matthew Wilcox <mawilcox@microsoft.com> | Mon Feb 13 21:44:06 2017 -0500 |
tree | 905864b7e31e039ba324cd3a354f0c1fc9527cf9 | |
parent | 829f83d3653ef7105187b0110887dbfd46a30ce4 [diff] |
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>