projects
/
GitHub
/
MotorolaMobilityLLC
/
kernel-slsi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
83886b6
)
[NET_SCHED]: cls_basic: fix memory leak in basic_destroy
author
Patrick McHardy
<kaber@trash.net>
Fri, 30 Mar 2007 20:36:23 +0000
(13:36 -0700)
committer
David S. Miller
<davem@sunset.davemloft.net>
Mon, 2 Apr 2007 20:30:52 +0000
(13:30 -0700)
tp->root is not freed on destruction.
Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sched/cls_basic.c
patch
|
blob
|
blame
|
history
diff --git
a/net/sched/cls_basic.c
b/net/sched/cls_basic.c
index 70fe36eb66a2619e038f4f83419f673d1370375c..4a91f082a81d11911b2bfd6f43132897916c8f3e 100644
(file)
--- 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)