mirror of
https://github.com/adulau/aha.git
synced 2024-12-28 19:56:18 +00:00
[NET_SCHED]: cls_basic: fix memory leak in basic_destroy
tp->root is not freed on destruction. Signed-off-by: Patrick McHardy <kaber@trash.net> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
83886b6b63
commit
31ba548f96
1 changed files with 1 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue