From 6d94f3b14205120019674b5a6a5502c9dadc4964 Mon Sep 17 00:00:00 2001 From: Patrick McHardy Date: Fri, 13 Apr 2007 21:28:27 +0200 Subject: [NET_SCHED]: cls_basic: fix memory leak in basic_destroy tp->root is not freed on destruction. Signed-off-by: Patrick McHardy Signed-off-by: David S. Miller Signed-off-by: Adrian Bunk --- net/sched/cls_basic.c | 1 + 1 file changed, 1 insertion(+) 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) -- cgit v1.2.3-18-g5258