diff options
author | Patrick McHardy <kaber@trash.net> | 2007-04-13 21:28:27 +0200 |
---|---|---|
committer | Adrian Bunk <bunk@stusta.de> | 2007-04-13 22:58:25 +0200 |
commit | 6d94f3b14205120019674b5a6a5502c9dadc4964 (patch) | |
tree | 75d3d5c93abe1c1a11af73c288d437d9935b5ed5 | |
parent | 2530ba1f3a6ea7923979907715fe00a7e4b2c818 (diff) |
[NET_SCHED]: cls_basic: fix memory leak in basic_destroy
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>
-rw-r--r-- | net/sched/cls_basic.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/sched/cls_basic.c b/net/sched/cls_basic.c index 5c29129ec92..fffcf2949f6 100644 --- a/net/sched/cls_basic.c +++ b/net/sched/cls_basic.c @@ -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) |