]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
[NET_SCHED]: cls_basic: fix memory leak in basic_destroy
authorPatrick McHardy <kaber@trash.net>
Fri, 13 Apr 2007 19:28:27 +0000 (21:28 +0200)
committerAdrian Bunk <bunk@stusta.de>
Fri, 13 Apr 2007 20:58:25 +0000 (22:58 +0200)
tp->root is not freed on destruction.

Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Adrian Bunk <bunk@stusta.de>
net/sched/cls_basic.c

index 5c29129ec9248fe274d605073a0f11eb6744f657..fffcf2949f61b6c36618861ea94a1288764458c5 100644 (file)
@@ -111,6 +111,7 @@ static void basic_destroy(struct tcf_proto *tp)
                list_del(&f->link);
                basic_delete_filter(tp, f);
        }
+       kfree(head);
 }
 
 static int basic_delete(struct tcf_proto *tp, unsigned long arg)