KMEM_TRACKING turned up a missing free in list test 6, fix the leak
This commit is contained in:
parent
15270e003e
commit
ae3b87f908
|
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue