]> granicus.if.org Git - spl/commitdiff
KMEM_TRACKING turned up a missing free in list test 6, fix the leak
authorBrian Behlendorf <behlendorf1@llnl.gov>
Tue, 20 Jan 2009 20:47:53 +0000 (12:47 -0800)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Tue, 20 Jan 2009 20:47:53 +0000 (12:47 -0800)
module/splat/splat-list.c

index 3d435cad0c16941714042514a9ccdea37dc52b0d..464a4578182c008b9bee979b0ee5cfced6a227d2 100644 (file)
@@ -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;
                }
        }