Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=31ba548f9683c5c5809567549b404404b6017088
Commit:     31ba548f9683c5c5809567549b404404b6017088
Parent:     83886b6b636173b206f475929e58fac75c6f2446
Author:     Patrick McHardy <[EMAIL PROTECTED]>
AuthorDate: Fri Mar 30 13:36:23 2007 -0700
Committer:  David S. Miller <[EMAIL PROTECTED]>
CommitDate: Mon Apr 2 13:30:52 2007 -0700

    [NET_SCHED]: cls_basic: fix memory leak in basic_destroy
    
    tp->root is not freed on destruction.
    
    Signed-off-by: Patrick McHardy <[EMAIL PROTECTED]>
    Signed-off-by: David S. Miller <[EMAIL PROTECTED]>
---
 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 70fe36e..4a91f08 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)
                list_del(&f->link);
                basic_delete_filter(tp, f);
        }
+       kfree(head);
 }
 
 static int basic_delete(struct tcf_proto *tp, unsigned long arg)
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to