Commit 6d94f3b1 authored by Patrick McHardy's avatar Patrick McHardy Committed by Adrian Bunk

[NET_SCHED]: cls_basic: fix memory leak in basic_destroy

tp->root is not freed on destruction.
Signed-off-by: default avatarPatrick McHardy <kaber@trash.net>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
Signed-off-by: default avatarAdrian Bunk <bunk@stusta.de>
parent 2530ba1f
...@@ -111,6 +111,7 @@ static void basic_destroy(struct tcf_proto *tp) ...@@ -111,6 +111,7 @@ static void basic_destroy(struct tcf_proto *tp)
list_del(&f->link); list_del(&f->link);
basic_delete_filter(tp, f); basic_delete_filter(tp, f);
} }
kfree(head);
} }
static int basic_delete(struct tcf_proto *tp, unsigned long arg) static int basic_delete(struct tcf_proto *tp, unsigned long arg)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment