summaryrefslogtreecommitdiffstats
path: root/net/sched
diff options
context:
space:
mode:
authorPatrick McHardy <kaber@trash.net>2007-03-30 22:36:23 +0200
committerDavid S. Miller <davem@sunset.davemloft.net>2007-04-02 22:30:52 +0200
commit31ba548f9683c5c5809567549b404404b6017088 (patch)
treeb1362760bfe47476bf487aacde9da2a27971e1af /net/sched
parent[NET]: Change "not found" return value for rule lookup (diff)
downloadlinux-31ba548f9683c5c5809567549b404404b6017088.tar.xz
linux-31ba548f9683c5c5809567549b404404b6017088.zip
[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>
Diffstat (limited to 'net/sched')
-rw-r--r--net/sched/cls_basic.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/sched/cls_basic.c b/net/sched/cls_basic.c
index 70fe36eb66a2..4a91f082a81d 100644
--- a/net/sched/cls_basic.c
+++ b/net/sched/cls_basic.c
@@ -109,6 +109,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)