[NET_SCHED]: cls_basic: fix memory leak in basic_destroy tp->root is not freed on destruction. Signed-off-by: Patrick McHardy --- commit b3df7f810c71b213224c105283c01e57ba7ed46a tree 7f49d1edbc955609e369317a5a76100c87082377 parent 167c6a396949ee921bf70cbe58529f8e4dd4398d author Patrick McHardy Fri, 30 Mar 2007 15:46:00 +0200 committer Patrick McHardy Fri, 30 Mar 2007 15:46:00 +0200 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 e76803c..c885412 100644 --- a/net/sched/cls_basic.c +++ b/net/sched/cls_basic.c @@ -110,6 +110,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)