summaryrefslogtreecommitdiffstats
path: root/net/sched
diff options
context:
space:
mode:
authorPatrick McHardy <kaber@trash.net>2007-03-30 13:36:23 -0700
committerDavid S. Miller <davem@sunset.davemloft.net>2007-04-02 13:30:52 -0700
commit31ba548f9683c5c5809567549b404404b6017088 (patch)
treeb1362760bfe47476bf487aacde9da2a27971e1af /net/sched
parent83886b6b636173b206f475929e58fac75c6f2446 (diff)
downloadop-kernel-dev-31ba548f9683c5c5809567549b404404b6017088.zip
op-kernel-dev-31ba548f9683c5c5809567549b404404b6017088.tar.gz
[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 70fe36e..4a91f08 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)
OpenPOWER on IntegriCloud