Home
last modified time | relevance | path

Searched hist:"18 d0c573" (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/tools/testing/radix-tree/
H A Dtest.c18d0c573 Sun Jan 29 00:48:34 CST 2017 Matthew Wilcox <mawilcox@microsoft.com> 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>
18d0c573 Sun Jan 29 00:48:34 CST 2017 Matthew Wilcox <mawilcox@microsoft.com> 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>