From ae3b87f908fe67f8be739b7f7c71bb5fdd742552 Mon Sep 17 00:00:00 2001 From: Brian Behlendorf Date: Tue, 20 Jan 2009 12:47:53 -0800 Subject: [PATCH] KMEM_TRACKING turned up a missing free in list test 6, fix the leak --- module/splat/splat-list.c | 1 + 1 file changed, 1 insertion(+) diff --git a/module/splat/splat-list.c b/module/splat/splat-list.c index 3d435cad0..464a45781 100644 --- a/module/splat/splat-list.c +++ b/module/splat/splat-list.c @@ -332,6 +332,7 @@ splat_list_test6(struct file *file, void *arg) if (li->li_data % 2 == 1) { li_prev = list_prev(&list, li); list_remove(&list, li); + kmem_free(li, sizeof(list_item_t)); li = li_prev; } }