KMEM_TRACKING turned up a missing free in list test 6, fix the leak

This commit is contained in:
Brian Behlendorf 2009-01-20 12:47:53 -08:00
parent 15270e003e
commit ae3b87f908
1 changed files with 1 additions and 0 deletions

View File

@ -332,6 +332,7 @@ splat_list_test6(struct file *file, void *arg)
if (li->li_data % 2 == 1) { if (li->li_data % 2 == 1) {
li_prev = list_prev(&list, li); li_prev = list_prev(&list, li);
list_remove(&list, li); list_remove(&list, li);
kmem_free(li, sizeof(list_item_t));
li = li_prev; li = li_prev;
} }
} }