: cls_basic: fix memory leak in basic_destroy
Subsystems (3)
[NET_SCHED]: cls_basic: fix memory leak in basic_destroy
tp->root is not freed on destruction.
Signed-off-by Patrick McHardy <[email protected]>
---
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
@@ -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)
From: Patrick McHardy <[email protected]>
Date: Fri, 30 Mar 2007 19:02:53 +0200
Quoted 5 lines
[
NET_SCHED]:cls_basic: fix memory leak inbasic_destroy
tp->rootis not freed on destruction.Signed-off-by Patrick McHardy <[email protected]>
Applied, thanks a lot Patrick.