Skip to contentSkip to conversation

: cls_basic: fix memory leak in basic_destroy

NET_SCHED Applied Patrick McHardy 2 participants 2 messages Mar 30, 2007

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

[NET_SCHED]: cls_basic: fix memory leak in basic_destroy

tp->root is not freed on destruction.

---
commit b3df7f810c71b213224c105283c01e57ba7ed46a
tree 7f49d1edbc955609e369317a5a76100c87082377
parent 167c6a396949ee921bf70cbe58529f8e4dd4398d
author Patrick McHardy <[email protected]> Fri, 30 Mar 2007 15:46:00 +0200 committer Patrick McHardy <[email protected]> Fri, 30 Mar 2007 15:46:00 +0200

 net/sched/cls_basic.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
net/sched/cls_basic.c +1 -0
index e76803c..c885412 100644
@@ -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)