diff options
author | Patrick McHardy <kaber@trash.net> | 2007-03-30 16:36:23 -0400 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2007-04-02 16:30:52 -0400 |
commit | 31ba548f9683c5c5809567549b404404b6017088 (patch) | |
tree | b1362760bfe47476bf487aacde9da2a27971e1af | |
parent | 83886b6b636173b206f475929e58fac75c6f2446 (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>
-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 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) | |||
109 | list_del(&f->link); | 109 | list_del(&f->link); |
110 | basic_delete_filter(tp, f); | 110 | basic_delete_filter(tp, f); |
111 | } | 111 | } |
112 | kfree(head); | ||
112 | } | 113 | } |
113 | 114 | ||
114 | static int basic_delete(struct tcf_proto *tp, unsigned long arg) | 115 | static int basic_delete(struct tcf_proto *tp, unsigned long arg) |