projects
/
unionfs-2.6.39.y.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2530ba1
)
[NET_SCHED]: cls_basic: fix memory leak in basic_destroy
author
Patrick McHardy
<kaber@trash.net>
Fri, 13 Apr 2007 19:28:27 +0000
(21:28 +0200)
committer
Adrian Bunk
<bunk@stusta.de>
Fri, 13 Apr 2007 20:58:25 +0000
(22:58 +0200)
tp->root is not freed on destruction.
Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Adrian Bunk <bunk@stusta.de>
net/sched/cls_basic.c
patch
|
blob
|
history
diff --git
a/net/sched/cls_basic.c
b/net/sched/cls_basic.c
index 5c29129ec9248fe274d605073a0f11eb6744f657..fffcf2949f61b6c36618861ea94a1288764458c5 100644
(file)
--- 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)